The character set of our program files is the character set of the. c extension file, which is used by the system's default ANSI character set, such as:
Above the character set we do not care, we care about the character set of the source program and the execution character set of the program , the character set of the source program is the compilation option we specify when compiling the program, where we choose UNICODE,
and the execution character set of the program is not OK, if we execute the program's operating system is the Unicode character set, then the execution character set is the Unicode character Set, if we execute the program's operating system ASCII Character Set , the execution character set is the ASCII character Set.
Assuming that we execute a program of a Unicode character set on the operating system of the ASCII Character Set, it is most likely garbled because the Unicode character sets and ASCII character sets are encoded differently, and the number of characters in the UNICODE Character set is far beyond ASCII Character Set, it is possible to encounter characters that cannot be represented by the ASCII character set.
C language's source program character set and execution character set