D
D
Daniel2018-09-12 02:12:06
C++ / C#
Daniel, 2018-09-12 02:12:06

Hieroglyphs instead of Cyrillic in c++?

In short, I have already tried hundreds of all these setLocale, everywhere, in all IDEs, there is no Cyrillic alphabet everywhere. I've been suffering for 2 days now. What the Cyrillic input depends on, maybe the compiler is junk there or something.
5b984b316a6ea841684491.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2018-09-12
@Mercury13

Before us is UTF-8. Convert the source to a working encoding (usually DOS-866 or Windows-1251).
Or work in wide lines. I got this source on MinGW 5.3.

#include <iostream>

using namespace std;

int main()
{
    setlocale(LC_ALL, "rus");
    wcout << L"Превед!" << endl;
    return 0;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question