ENCODING Subcommand (WRITE command)
ENCODING
specifies the encoding format
of the file. The keyword is followed by an equals sign and a quoted encoding
specification.
- In Unicode mode, the default is
UTF8
. For more information, see SET command, UNICODE subcommand. - In code page mode, the default is the current locale setting. For more information, see SET command, LOCALE subcommand.
- The quoted encoding value can be:
Locale
(the current locale setting),UTF8
,UTF16
,UTF16BE
(big endian),UTF16LE
(little endian), a numeric Windows code page value (for example, '1252'), or an IANA code page value (for example, 'iso8859-1' or cp1252).
- If there is no
OUTFILE
subcommand, theENCODING
subcommand is ignored.
BOM Keyword
By default, files encoded in
any of the UTF formats include a byte order mark (BOM). Some applications
cannot interpret the byte order mark. You can use the BOM
keyword
to suppress the byte order mark.
- BOM=YES
- Include the byte order mark in UTF files. This option is the default.
- BOM=NO
- No not include the byte order mark in UTF files.