Incorrect display in Cyrillic Windows

Paul Water via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 10 16:07:24 PDT 2015


On Wednesday, 4 March 2015 at 12:14:01 UTC, Martin Krejcirik 
wrote:
> On Wednesday, 4 March 2015 at 11:32:40 UTC, Dennis Ritchie 
> wrote:
>> Hi.
>> It's normal for Windows?
>
> You have to set your console encoding to UTF-8 first.
>
> You can do it by command "chcp 65001" or by calling Windows API 
> function:
>
> extern(Windows) BOOL SetConsoleOutputCP( UINT );
> SetConsoleOutputCP( 65001 );
>
> Also change your font to Lucida Console.
It works, thanks!


More information about the Digitalmars-d-learn mailing list