How do I display unicode characters in D on standard (english) Windows 10 console window?
Martin Krejcirik
mk-junk at i-line.cz
Tue Jul 30 12:06:23 UTC 2019
On Monday, 29 July 2019 at 22:31:01 UTC, kinke wrote:
> Switching the console code page to UTF-8, and then restoring
> the original one before termination. See
> https://github.com/ldc-developers/ldc/pull/3086/commits/5915534530fa095e7e5d58bcfb4ad100d249bbca#diff-c59e7716a40a08ce42f141c738f2c311. You may have to set a non-raster console font (e.g., Consolas).
Just be advised, this was seriously broken in the past. Depends
on windows, ms libraries, whether it's stdout or stderr and more.
Current versions are probably ok, will check. Don't count on this
to work on older windows including older Win10.
I always convert to/from console codepage to be safe.
More information about the Digitalmars-d-learn
mailing list