On Monday, 29 March 2021 at 02:12:57 UTC, Brad wrote:
I am new here so I will post this in Learn.

I have been doing a bit of reading on printing unicode characters in the Windows Console. Specifically W10 command prompt. I ran across a post by Adam Ruppe in a thread created a couple years ago which links a short bit of code and a quick discussion that Adam presents on his blog. Here is a link to the specific reply I refer to: https://forum.dlang.org/post/sjsqqhwvlonohvwyq...@forum.dlang.org

[...]

I have been used this trick in C++, so it might also work in D:
```
import core.stdc.stdlib;
import std.stdio;

void main()
{
    version(Windows)
        system("chcp 65001 > NUL".ptr);
    writeln("çéäö");
}
```

Reply via email to