Chinese characters display correctly under 936 after using the Function CharToOemW

FrankLike via Digitalmars-d digitalmars-d at puremagic.com
Sat May 17 00:59:55 PDT 2014




>> I  mean not  use conv by us,writeln(”中文”),then ok.
>> Thank you.
>
> import core.stdc.string;
> char[] s2 = (toMBSz(s1)[0 .. strlen(toMBSz(s1))]).dup;
> writeln(s2);

I mean only writeln(s1),transform inside.

Thank you.



More information about the Digitalmars-d mailing list