int main()
{
wcout << L"Русский текст" << endl;
wprintf(L"Русский текст\n");
return 0;
}
This simple program doesn't print anything to the Console window (not even new lines). VC++ 2010 Console Application project. What is wrong?
According to links pointed to in this blog you need to change the font of the console and also this line:
_setmode(_fileno(stdout), _O_U16TEXT);