Something about Chinese Disorder Code

magicdmer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Nov 24 20:09:28 PST 2015


On Tuesday, 24 November 2015 at 19:41:12 UTC, Marco Leise wrote:
> Am Tue, 24 Nov 2015 17:08:33 +0000
> schrieb BLM768 <blm768 at gmail.com>:
>
> [...]

thank you for your answers.

I solved it.
windows console like:
fwide(core.stdc.stdio.stdout, 1);
setlocale(0, cast(char*)"china");
auto str = "你好,世界";
writeln(str);

MessageBox like:
const wchar *wstring = toUTF16z("你好,世界");
MessageBoxW(null,wstring,wstring,0);


More information about the Digitalmars-d-learn mailing list