How to correctly display accented characters at the Windows prompt?
John C via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Oct 10 08:05:13 PDT 2016
On Monday, 10 October 2016 at 14:14:08 UTC, Cleverson Casarin
Uliana wrote:
> Hello, when I run a compiled Windows executable at the console,
> letters outside the ascii range such as ç and ã do not display
> propperly. Is there any d function to change the console code
> page on the fly? My Windows console code page, which is for
> Brazilian Portuguese, is at 850. Perhaps an alternative would
> be to convert d strings from Unicode to the 850 code page on
> the fly.
>
> Thanks,
> Cleverson
Call SetConsoleOutputCP(CP_UTF8).
More information about the Digitalmars-d-learn
mailing list