Jump to content

Recommended Posts

Posted

Im using mysql.au3, it works ok. But I need to list arabic names and save them to a file, names appear as rubbish, how can I correctly view and save them in AutoIT?

Thanks

Posted (edited)

Has far as I understood au3 internally handels all strings as unicode. You'll just have to set the correct mode to fileopen("filename",mode) the output file to use UTF-8, try something like

$file = FileOpen($var, 130); 128 = Use Unicode UTF8 when writing text + 2 = Write mode (erase previous contents)
FileWrite($file, "Line1")
FileClose($file)
Edited by KaFu
Posted

Has far as I understood au3 internally handels all strings as unicode. You'll just have to set the correct mode to fileopen("filename",mode) the output file to use UTF-8, try something like

$file = FileOpen($var, 130); 128 = Use Unicode UTF8 when writing text + 2 = Write mode (erase previous contents)
FileWrite($file, "Line1")
FileClose($file)

It works.

Thank you

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...