Jump to content
Sign in to follow this  
oshaker

Arabic Support

Recommended Posts

oshaker

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

Share this post


Link to post
Share on other sites
KaFu

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

Share this post


Link to post
Share on other sites
oshaker

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.