On Sat, 27 Jun 2009 16:13:03 -0600, Rainer Deyke wrote: > Elrood wrote: >> Sorry to have to disappoint you, but Chinese output to a Windows console >> is non-trivial if not entirely impossible (you'd probably have to ask >> someone using a Chinese Windows version for a definitive answer). > > No, it's not. In Python, unicode text output just plain works. > > Program: > # coding=utf-8 > print u'中国' > Output: > 中国 > > This is a bug in D, full stop. > > (Yes, you do need to to set a codepage that contains these characters (I > am using CP932) and you need an font that can represent these > characters. I assume OP already has both. Note that CP65001 does not > work.)
I'm having troubles with this ... C:\temp>chcp 932 Invalid code page C:\temp>chcp 65001 Active code page: 65001 It seems that my Windows XP doesn't know about CP932. -- Derek Parnell Melbourne, Australia skype: derek.j.parnell