2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe

Dmitry via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 25 12:24:28 PST 2015


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);
}


More information about the Digitalmars-d mailing list