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 13:59:40 PST 2015


On Sunday, 25 January 2015 at 20:24:30 UTC, Dmitry wrote:
> On Sunday, 25 January 2015 at 18:23:03 UTC, Suliman wrote:
>> Why we can not simply automatically switch CMD to UTF-8 before 
>> app start?
>> I do not see any minuses in this solution.
>
> +1. I use
>
> import std.stdio;
> import std.c.windows.windows;
>
> void main()
> {
>     SetConsoleOutputCP(65001);
>     writeln(utf-8 text);
> }

If  you don't  modify the  font,display will be bad.


More information about the Digitalmars-d mailing list