Thanks. I save with all the UNICODE types available in VS, but still the
text is garbage...
That part likely has more to do with the output code page of the console
itself -- if you try outputing the code points rather than the characters
then you will know if that is what is going on....

Signature
MichKa [MS]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Microsoft Windows International Division
This posting is provided "AS IS" with
no warranties, and confers no rights.
> Thanks. I save with all the UNICODE types available in VS, but still the
> text is garbage...
[quoted text clipped - 24 lines]
> >>
> >> TomTom
TomTom - 23 Jan 2005 20:05 GMT
Thanks for your suggestion. I am using Windows XP. Although the machine's
system locale is English (U.S), I thought that should have worked. I will
investigate.
> That part likely has more to do with the output code page of the console
> itself -- if you try outputing the code points rather than the characters
[quoted text clipped - 34 lines]
>> >>
>> >> TomTom
"Achim Ruopp [MSFT]" - 10 Feb 2005 21:55 GMT
TomTom,
as you are running on a machine with English US system locale you will face
a number of obstacles:
1.) The VC 7.1 compiler by default only uses the system default codepage,
you can change this with #pragma setlocale; VC 7.1 does not support Unicode
source files (the upcoming version will)
2.) You are outputting the string to a command window that uses the OEM
codepage 437 as an output codepage; this codepage doesn't contain Japanese
characters; there are ways to output Unicode via WriteConsole(), but this
isn't supported in the C runtime until the latest version
3.) On present versions of Windows the command window font selection
depends on the system locale and for English US system locale this
selection doesn't contain a font that could display Japanese characters
..?
In short: displaying Japanese in a command window on an English US system
locale machine is pretty much impossible (note that you can make it work
for other languages like Russian or Greek). You better display English or
switch to Japanese system locale.
Achim Ruopp

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
TomTom - 11 Feb 2005 04:28 GMT
Thank you Achim. Then, I won't spend time on Console Window any more.
It's good to know that the next version will support Unicode source files.
> TomTom,
> as you are running on a machine with English US system locale you will
[quoted text clipped - 19 lines]
>
> Achim Ruopp