problem with cirillic

Hi, i have problem with printing cirillic symbols to console.
here is my programm

1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <wchar.h>
#include <windows.h>

using namespace std;
void main()
{
   wchar_t * ch  = L"My Name Is: Акмал\n";
   wprintf(ch);
}


but output is: My Name Is
i can't understand where is the word in cirillic Акмал
thanks


OS? Code page setting?
OS: Windows Vista Ultimate, VS2008
but i don't know information about Code Page, where i can get this info?
Last edited on
Control panel, regional settings.
I forgot. Compiler?
Current System Locale = Russian
Visual Studio 2008 compiler
My guess is VC++ is either outputting UTF-8 or something like that and the locale can't figure it out, or the compiler just decided to skip those characters.

cmd.exe really sucks at anything other than pure ASCII, so you shouldn't expect much from it.
For the purpose of your program you could write Akman instead of Акмал. I know they are two totally different things but... Well depends how badly you need the characters to display. I myself have never got much else working than ASCII.
Topic archived. No new replies allowed.