FileEncoding

Sets the default encoding for FileRead, Loop Read, FileAppend, and FileOpen.

FileEncoding Encoding

Encoding can be one of the following values:

Remarks

A_FileEncoding contains the current setting.

If not otherwise set by the script, the default is CP0.

CP0 does not universally identify a single code page; rather, it corresponds to the system default ANSI code page, which depends on the system locale or "language for non-Unicode programs" system setting. If CP0 is the current setting, A_FileEncoding returns CP0 (never a blank value). To get the actual code page number, call DllCall("GetACP").

Related

FileOpen, StrPut, StrGet, Script Compatibility