Re: displaying chinese in windows

From: Markus Scherer (markus.scherer@jtcsv.com)
Date: Mon May 07 2001 - 17:37:52 EDT


Charlie Wu wrote:
> Just realized I can't even display Chinese in an NT command window.. I have
...
> any ideas?

Well, a couple.

- The easy workaround is to redirect your output with >out.txt and then look at it with notepad out.txt .

- On NT you can also try to chcp 10000 which magically switches the console window to 16-bit Unicode. I have used this with C applications that used wprintf() and such. I have not tried it with Java - it might depend on what NT APIs Java uses for output ("W" functions?) and on whether it attempts to convert to the "ANSI" or "OEM" codepage itself.
If it works at all, then you need to select a monospace console font with the expected glyphs.

markus



This archive was generated by hypermail 2.1.2 : Fri Jul 06 2001 - 00:18:17 EDT