Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
March 04, 2015 Incorrect display in Cyrillic Windows | ||||
---|---|---|---|---|
| ||||
Hi. It's normal for Windows? http://i.imgur.com/TEx4H3k.png import std.uni; import std.stdio; void main() { string s; foreach(ch; CodepointSet('А', 'Я' + 1, 'а', 'я' + 1).byCodepoint) s ~= ch; writeln(s); writeln("s[0] = ", s[0]); } |
March 04, 2015 Re: Incorrect display in Cyrillic Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dennis Ritchie | https://issues.dlang.org/show_bug.cgi?id=2742 |
March 04, 2015 Re: Incorrect display in Cyrillic Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dennis Ritchie | 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.
|
March 04, 2015 Re: Incorrect display in Cyrillic Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Krejcirik | On Wednesday, 4 March 2015 at 12:14:01 UTC, Martin Krejcirik wrote:
> 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.
Thanks.
|
April 10, 2015 Re: Incorrect display in Cyrillic Windows | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Krejcirik | 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!
|
Copyright © 1999-2021 by the D Language Foundation