Re: How to print unicode like: こ ん に ち は 世界

2011-05-21 Thread Matthew Ong
On 5/20/2011 2:55 PM, Russel Winder wrote: On Thu, 2011-05-19 at 22:37 +0200, Andrej Mitrovic wrote: [ . . . ] You would also need a Unicode-aware font, maybe Lucida or something similar. Typically fixed-point fonts used for programming have little support for Unicode characters, and you would

Re: How to print unicode like: こ ん に ち は 世界

2011-05-21 Thread Matthew Ong
On 5/21/2011 2:46 PM, Matthew Ong wrote: On 5/20/2011 2:55 PM, Russel Winder wrote: On Thu, 2011-05-19 at 22:37 +0200, Andrej Mitrovic wrote: [ . . . ] You would also need a Unicode-aware font, maybe Lucida or something similar. Typically fixed-point fonts used for programming have little

Re: How to print unicode like: こ ん に ち は 世界

2011-05-19 Thread Andrej Mitrovic
Which OS?

Re: How to print unicode like: こ ん に ち は 世界

2011-05-19 Thread Andrej Mitrovic
If you're on Windows, you need to set the proper codepage for the console, you can do it programmatically like so: version(Windows) { import std.c.windows.windows; extern(Windows) BOOL SetConsoleOutputCP(UINT); } void main() { version(Windows) SetConsoleOutputCP(65001);