<br>Anonymouse via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> napsal Út, led 3, 2017 v 12∶34 :<br>
<blockquote type="cite"><div class="plaintext" style="white-space: pre-wrap;">On Monday, 2 January 2017 at 21:07:37 UTC, Ignacious wrote:
<blockquote>[...]
</blockquote>
Assuming Windows:

version(Windows)
shared static this()
{
    import core.sys.windows.windows;
    SetConsoleCP(65001);
    SetConsoleOutputCP(65001);
}</div></blockquote><br><div>Why do not use CP_UTF8 constant instead of 65001? It is safer, easier to read and understand</div>