FileEncoding [AHK_L 42+]

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

FileEncoding , Encoding

Encoding can be one of the following values:

Remarks

A_FileEncoding contains the current setting.

The default encoding is not used if a UTF-8 or UTF-16 byte order mark is present in the file, unless the file is being opened with write-only access (i.e. the previous contents of the file are being discarded).

Related

FileOpen, StrPut/StrGet, Script Compatibility