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.

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top