Passes the encoding of the source program to the compiler.
Syntax:
>>------SOURCE-ENCODING--"encoding"--><
Parameters:
- encoding
- Possible values are:
- ANSI
-
- OEM
-
- UTF8
- Sets a UTF-8 runtime encoding of PIC X data unless RUNTIME-ENCODING is set explicitly.
- UTF16 (UTF-16 native)
- Sets a UTF-8 runtime encoding of PIC X data unless RUNTIME-ENCODING is set explicitly.
- UTF16P (UTF-16 portable)
- Sets a UTF-8 runtime encoding of PIC X data unless RUNTIME-ENCODING is set explicitly.
Properties:
Default:
|
SOURCE-ENCODING"OEM"
|
Phase:
|
Syntax check
|
$SET
|
No
|
Dependencies:
This directive also sets the runtime encoding unless the RUNTIME-ENCODING directive is specified.
Comments:
SOURCE-ENCODING passes the encoding of the source program to the compiler. It is then used to determine the runtime encoding, unless the RUNTIME-ENCODING directive is specified.
SOURCE-ENCODING can be overridden if the source file includes a Unicode byte order mark (BOM) for UTF-8, UTF-16, portable or native.