简体   繁体   中英

How to enable two locales at once with #pragma in Visual C++?

As far as I know you can set your language with:

#pragma setlocale("language")

However you can only set it to one language. Anyone knows how to enable two languages in the same form in C++? Lithuanian and Russian in this case.

It seems that what you specifically want is to support the character set of both languages.

You can support all supported Unicode characters by specifying the character encoding UTF-8 in the locale.

#pragma setlocale("any_language.UTF-8")

Microsoft covers some details of using a multibyte character set here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM