Jochen
Tue Feb 27 11:11:20 CST 2007
Hi Ben!
> How can I print unicode characters (e.g. specifically, the 'suit' symbols,
> i.e. hearts clubs diamonds spades), to the console?
Just do it!
But you need to have the correct console-font! The default font is not
able to display this characters. You need to use the "Lucidia Console" font.
> I've tried every possible manipulation of wchar_t I can think of and nothing
> will work. To make it worse, VB.NET can do it - so I know it's not a
> limitation of the console. How can I do this in (unmanaged) C++?
Also the best way is to use WriteConsoleW to do the output. If you use
printf, it will use the default-culture to transform the characters to
ANSI...
See: wprintf/wcout has no UNICODE support
http://blog.kalmbachnet.de/?postid=23
In VC2005 there should be better support for console output, but I have
not tried it yet...
--
Greetings
Jochen
My blog about Win32 and .NET
http://blog.kalmbachnet.de/