Anonymouse via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> napsal Út, led 3, 2017 v 12∶34 :
On Monday, 2 January 2017 at 21:07:37 UTC, Ignacious wrote:[...]Assuming Windows: version(Windows) shared static this() { import core.sys.windows.windows; SetConsoleCP(65001); SetConsoleOutputCP(65001); }
Why do not use CP_UTF8 constant instead of 65001? It is safer, easier to read and understand