+ 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?

7th Jan 2019, 7:26 PM
Š”Š¾Š½Ń Š›Š°Š½ŠŗŠ¼ŠøŠ»Š»ŠµŃ€
Š”Š¾Š½Ń Š›Š°Š½ŠŗŠ¼ŠøŠ»Š»ŠµŃ€ - avatar
1 Answer
+ 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/
7th Jan 2019, 9:29 PM
sneeze
sneeze - avatar