2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe
FrankLike via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jan 25 08:48:08 PST 2015
On Sunday, 25 January 2015 at 16:33:51 UTC, FrankLike wrote:
>> Perhaps:
>>
>> import std.windows.charset;
>> import std.conv;
>>
>> then:
>>
>> writeln(to!(string)(toMBSz(utf8)));
>
> Why not switch by Version:
> version(Windows)
> {
> writeln(to!(string)(toMBSz(utf8)));
> }
> else version(linux)
> {
> ...
> }
writeln(to!(string)(toMBSz("中文1")," ",to!(string)(toMBSz(中文2));
Can't easy to do:
writeln("中文1"," ","中文2");
More information about the Digitalmars-d
mailing list