How to print unicode like: こ ん に ち は 世 界
Adam D. Ruppe
destructionator at gmail.com
Thu May 19 08:33:38 PDT 2011
Try using the hex unicode characters like this:
"\u0123"
I don't think decimal characters like you put work in D strings.
The &name; syntax sometimes works but only for named chars, and
you need to put a \ before them like this:
writeln("\“ hello \”");
Prints:
hello
You'll have to make sure your console is set to a unicode code
page though. This might be done automatically on Windows; I'm
not sure.
More information about the Digitalmars-d-learn
mailing list