ENCODING subcommand (GET DATA command)
You can use the optional ENCODING
subcommand to
specify the character encoding for the file. The subcommand name is
followed by an equals sign (=) and one of the following values enclosed
in quotes:
- UTF8
- The file is read in UTF-8 Unicode encoding. This is the default in Unicode mode (see SET command, Unicode subcommand) .
- UTF16
- The file is read in UTF-16 encoding. The endianness of the encoding is determined by the endianness of the operating system.
- UTF16BE
- The file is read as UTF-16, big endian.
- UTF16LE
- The file is read as UTF-16, little endian.
- LOCALE
- The file is read in the current locale code page encoding. This is the default in code page mode (see SET command, LOCALE subcommand).
The ENCODING
subcommand is ignored if the file
contains a UTF-8 or UTF-16 byte order mark, and the file is read according
to the byte order mark. If the byte order mark indicates any other
Unicode encoding, the file is not read and an error message is issued.