Russian symbols
Posted: Tue Aug 26, 2008 6:05 pm
Hi2all. I now try to print in the console Russian symbols, using the next way:
and symbols in the console look incorrectly. I used this code also with MinGW Studio 2.05, Visual C++ 2008 Express, Codegear C++ and there all was normal. Therefore I have thought, that business in Codelite.
Code: Select all
#include <iostream>
#include <windows.h>
using namespace std;
int main(void)
{
char src[10], dest[10];
strcpy(src,"Привет"); // string with russian symbols
CharToOem(src,dest);
cout << dest;
getchar();
return 0;
}