There is some Windows/VS setting that will let debug output in VS correctly output non Latin characters. We are interested in Cyrillic letters. What is that setting?
Asked
Active
Viewed 434 times
1 Answers
0
Too brief question. However, a solution based on this answer could help:
#include "stdafx.h"
#include <iostream>
#include <io.h>
#include <fcntl.h>
int wmain(int argc, wchar_t* argv[])
{
_setmode(_fileno(stdout), _O_U16TEXT);
std::wcout
<< L"Unicode test -- Ελληνικά -- čeština -- русский язык -- Türkçesi"
<< std::endl;
for (int i = 1; i < argc; ++i)
{
std::wcout << L"param " << i << L": " << argv[i] << std::endl;
}
}
Verified using Visual Studio 2013:
==> ".\so36212399\Debug\so36212399.exe" qwertz ςερτυθ ěščřžý йцукен ğüşıöç
Unicode test -- Ελληνικά -- čeština -- русский язык -- Türkçesi
param 1: qwertz
param 2: ςερτυθ
param 3: ěščřžý
param 4: йцукен
param 5: ğüşıöç
==>