Вопрос

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top