I display chinese string like:
auto str = "你好,世界"
writeln(str)
and The display is garbled。
some windows api like MessageBoxA ,if string is chinese, it
displays disorder code too
i think i must use WideCharToMultiByte to convert it , is there
any other answer to solve this question simplely
On 24/11/15 10:48 PM, magicdmer wrote:
I display chinese string like:
auto str = "你好,世界"
writeln(str)
and The display is garbled。
some windows api like MessageBoxA ,if string is chinese, it displays
disorder code too
i think i must use WideCharToMultiByte to convert it , is there any
other an
On Tuesday, 24 November 2015 at 09:48:45 UTC, magicdmer wrote:
I display chinese string like:
auto str = "你好,世界"
writeln(str)
and The display is garbled。
some windows api like MessageBoxA ,if string is chinese, it
displays disorder code too
i think i must use WideCharToMultiByte to convert
On Tuesday, 24 November 2015 at 09:52:21 UTC, Rikki Cattermole
wrote:
On 24/11/15 10:48 PM, magicdmer wrote:
I display chinese string like:
auto str = "你好,世界"
writeln(str)
and The display is garbled。
some windows api like MessageBoxA ,if string is chinese, it
displays
disorder code too
i t
On Tuesday, 24 November 2015 at 09:48:45 UTC, magicdmer wrote:
I display chinese string like:
auto str = "你好,世界"
writeln(str)
and The display is garbled。
some windows api like MessageBoxA ,if string is chinese, it
displays disorder code too
i think i must use WideCharToMultiByte to convert
Am Tue, 24 Nov 2015 17:08:33 +
schrieb BLM768 :
> On Tuesday, 24 November 2015 at 09:48:45 UTC, magicdmer wrote:
> > I display chinese string like:
> >
> > auto str = "你好,世界"
> > writeln(str)
> >
> > and The display is garbled。
> >
> > some windows api like MessageBoxA ,if string is chinese, i
On 25/11/15 1:47 AM, Meta wrote:
On Tuesday, 24 November 2015 at 09:52:21 UTC, Rikki Cattermole wrote:
On 24/11/15 10:48 PM, magicdmer wrote:
I display chinese string like:
auto str = "你好,世界"
writeln(str)
and The display is garbled。
some windows api like MessageBoxA ,if string is chinese, it
On Tuesday, 24 November 2015 at 19:41:12 UTC, Marco Leise wrote:
Am Tue, 24 Nov 2015 17:08:33 +
schrieb BLM768 :
[...]
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);
Mess
On Wednesday, 25 November 2015 at 04:09:29 UTC, magicdmer wrote:
fwide(core.stdc.stdio.stdout, 1);
setlocale(0, cast(char*)"china");
auto str = "你好,世界";
writeln(str);
Is it for microsoft runtime or for snn?
On Wednesday, 25 November 2015 at 04:09:29 UTC, magicdmer wrote:
On Tuesday, 24 November 2015 at 19:41:12 UTC, Marco Leise wrote:
Am Tue, 24 Nov 2015 17:08:33 +
schrieb BLM768 :
[...]
thank you for your answers.
I solved it.
windows console like:
fwide(core.stdc.stdio.stdout, 1);
setloca
On Wednesday, 25 November 2015 at 12:33:00 UTC, Marc Schütz wrote:
On Wednesday, 25 November 2015 at 04:09:29 UTC, magicdmer wrote:
On Tuesday, 24 November 2015 at 19:41:12 UTC, Marco Leise
wrote:
Am Tue, 24 Nov 2015 17:08:33 +
schrieb BLM768 :
[...]
thank you for your answers.
I solved
On Thursday, 26 November 2015 at 01:59:12 UTC, magicdmer wrote:
On Wednesday, 25 November 2015 at 12:33:00 UTC, Marc Schütz
wrote:
On Wednesday, 25 November 2015 at 04:09:29 UTC, magicdmer
wrote:
On Tuesday, 24 November 2015 at 19:41:12 UTC, Marco Leise
wrote:
Am Tue, 24 Nov 2015 17:08:33 +000
On Thursday, 26 November 2015 at 09:59:01 UTC, Marc Schütz wrote:
No, I'm talking specifically about the cast in there, not the
call to setlocale(). Does it still work if you replace this:
setlocale(0, cast(char*)"china");
by that:
setlocale(0, "china");
?
yes Of course,it works we
On 25/11/2015 2:16 PM, Rikki Cattermole wrote:
On 25/11/15 1:47 AM, Meta wrote:
I'm pretty sure you can just do:
wstring text = "my string";
Or
auto text = "my string"w;
The second one is correct yes.
I'm just assuming that it isn't compiled into the executable.
Either is fine. Non-suffi
14 matches
Mail list logo