+ 1
How do I get the console to display entry in the require language?
My code is: #include <iostream> using namespace std; int main () { string name; setlocale(LC_ALL, "russian"); //This is to ensure that the console correctly displays the words in Russian cout << " Введите свое имя" << endl; //Type your name cin >> name; cout <<" Привет" << name <<" " << endl; //Hello return 0; } When I write the name in console it is displayed by a set of random letters and symbols. The rest is displayed correctly. How to make the name written in Cyrillic displays correctly?
1 Resposta
+ 2
Have a look at this link.
I can't test it because my settings are englisch, but it sounds plausible.
http://cppstudio.com/en/post/435/