A
A
Alexander2020-02-16 15:26:52
C++ / C#
Alexander, 2020-02-16 15:26:52

Why are Russian characters not displayed?

I’ll clarify right away, the line setlocale(LC_ALL, "Russian"); wrote.
If output like this cout << “blah blah”; it outputs, all the rules.
And if so
Char str[];
Cin >>str;
cout <<str;
That Russian characters are not displayed.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2020-02-16
@Shemapp

Probably it is a question of Windows and the project in MSVS.
The problem specifically described seems to be that the program was compiled with UTF8 support. Try turning off UTF8 support in the project settings and rebuilding the program.
But in Windows, outputting Russian letters to the console is not a trivial task. This topic has been discussed many times here. It is useful to at least have an idea about the issue. You can start here and read the comments to the article.

V
vreitech, 2020-02-16
@fzfx

setlocale(LC_ALL, "ru_RU.UTF-8");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question