Answer the question
In order to leave comments, you need to log in
Why are question marks displayed instead of Cyrillic characters?
#include <iostream>
#include <locale.h>
using namespace std;
void main()
{
setlocale( LC_ALL,"Russian" );
cout << "Тестовый текст\n";
system("pause");
}
Answer the question
In order to leave comments, you need to log in
setlocale(lC_ALL, "en-us.UTF-8");
Of course, it must be present in the system.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question