Hi,
import std.stdio;
alias immutable(wchar)[] String;
String str=Hello, world; or #922;#945;#955;#951;#956;#941;#961;#945;
#954;#972;#963;#956;#949;; or #12371;#12435;#12395;#12385;#12399;
#19990;#30028;;
writeln(str); // It prints garbage on console.
In Java and Go, that just works. I
AH... The web encoder corrupted the string. into NON human readable.
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(\ldquo; hello \rdquo;);
Prints:
� hello �
You'll have to
On 19/05/2011 16:19, Matthew Ong wrote:
On 5/19/2011 11:22 PM, Matthew Ong wrote:
Hi,
import std.stdio;
alias immutable(wchar)[] String;
String str=Hello, world;
or#922;#945;#955;#951;#956;#941;#961;#945;#954;#972;#963;#956;#949;;
or#12371;#12435;#12395;#12385;#12399;#19990;#30028;;