Passes the encoding of the source program to the compiler.
Syntax:
>>------SOURCE-ENCODING--"encoding"--><
Parameters:
- encoding
- Possible values are:
- ANSI
- Sets an ANSI run-time encoding of PIC X data unless RUNTIME-ENCODING is set explicitly.
- OEM
- Sets an OEM run-time encoding of PIC X data unless RUNTIME-ENCODING is set explicitly. Use this setting if your source is
using code pages such as 437, 850, and 932.
- UTF8
- Sets a UTF-8 run-time encoding of PIC X data unless RUNTIME-ENCODING is set explicitly.
- UTF16 (UTF-16 native)
- Sets a UTF-8 run-time encoding of PIC X data unless RUNTIME-ENCODING is set explicitly.
- UTF16P (UTF-16 portable)
- Sets a UTF-8 run-time encoding of PIC X data unless RUNTIME-ENCODING is set explicitly.
Properties:
Default:
|
SOURCE-ENCODING"ANSI"
|
Phase:
|
Syntax check
|
$SET
|
No
|
Dependencies:
This directive also sets the run-time 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 run-time 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.
For Japanese locale settings, there is no difference between setting SOURCE-ENCODING"ANSI" and SOURCE-ENCODING"OEM".