-qmbcs, -qdbcs


Use the -qmbcs option if your program contains multibyte characters. The -qmbcs option is equivalent to -qdbcs.


Read syntax diagramSkip visual syntax diagram        .-nombcs-.
>>- -q--+-mbcs---+---------------------------------------------><

See also #pragma options.


Multibyte characters are used in certain languages such as Chinese, Japanese, and Korean.

Multibyte characters are also permitted in comments, if you specify the -qmbcs or -qdbcs compiler option.

If a source file contains multibyte character literals and the default -qnombcs or -qnodbcs compiler option is in effect, the compiler will treat all literals as single-byte literals.


To compile myprogram.c if it contains multibyte characters, enter:

xlc myprogram.c -qmbcs

Related information