Identifies the files source text encoding format to the compiler.
#pragma text_encoding ( "name" | unknown | reset [, global] )
name
The IANA or MIME encoding name or an OS-specific string that identifies the text encoding. The compiler recognizes these names and maps them to its internal decoders:
system US-ASCII ASCII ANSI_X3.4-1968
ANSI_X3.4 UTF-8 UTF8 ISO-2022-JP
CSISO2022JP ISO2022JP CSSHIFTJIS SHIFT-JIS
SHIFT_JIS SJIS EUC-JP EUCJP UCS-2 UCS-2BE
UCS-2LE UCS2 UCS2BE UCS2LE UTF-16 UTF-16BE
UTF-16LE UTF16 UTF16BE UTF16LE UCS-4 UCS-4BE
UCS-4LE UCS4 UCS4BE UCS4LE 10646-1:1993
ISO-10646-1 ISO-10646 unicode
global
Tells the compiler that the current and all subsequent files use the same text encoding. By default, text encoding is effective only to the end of the file.
By default, #pragma text_encoding is only effective through the end of the file. To affect the default text encoding assumed for the current and all subsequent files, supply the “global” modifier.
This pragma corresponds to the Source Encoding option . The default setting is ASCII.