Question

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.

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top