From version 126.96.36.199 AutoIt is supplied as a Unicode program. The Unicode versions will allow our international friends to finally use AutoIt with extended characters and scripts!
Note: the Unicode version of AutoIt (AutoIt3.exe) and scripts compiled in Unicode mode will only run on Windows NT/2000/XP/2003/Vista and later machines. To allow scripts to run on Windows 9x scripts you must use an older version of AutoIt. The last version compatible with Windows 9x was 3.2.12.x.
AutoIt will read script files in ANSI or UTF16 (big or little endian) / UTF8 formats with a valid BOM. In addition, functions such as FileReadLine will automatically read text from ANSI and UTF16/UTF8 text files providing a valid BOM is found. UTF8 files with or without a BOM are also supported.
Output functions such as FileWriteLine can use ANSI, UTF16 and UTF8 formats - but the file must be opened in the desired mode using the desired FileOpen flags otherwise the default ANSI mode is used.
The supported file formats for text files and scripts and their notation in popular editors are shown in this table:
|AutoIt Notation||Notepad||Notepad++||SciTE (AutoIt Default Editor)|
|ANSI||ANSI||ANSI||8 bit / Code Page Property|
|UTF16 Little Endian||Unicode||UCS-2 Little Endian||UCS-2 Little Endian|
|UTF16 Big Endian||Unicode big endian||UCS-2 Big Endian||UCS-2 Big Endian|
|UTF8 with BOM||UTF-8||UTF-8||UTF-8 with BOM|
|UTF8 without BOM||Not supported||UTF-8 without BOM||UTF-8|
The recommended script format is UTF-8 with BOM. ANSI formats are not recommended for languages other than English as they can cause problems when run on machines with different locales.
All AutoIt strings use UTF-16 (in fact and more precisely UCS-2) encoding.
There are a few parts of AutoIt that don't yet have full Unicode support. These are:
These limits will be addressed in future versions if possible.