The writeln() function's args can't be ["一" ,"二"]?

FrankLike via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 6 19:18:46 PDT 2014


> That is understandable: Since the console is set to 936, it 
> interprets D program's UTF-8 output incorrectly.
>
> Please do what Regan Heath says and test again:
>
> 1) Set the code page to 65001
>
> 2) Use a font that includes your Unicode characters
>
> Ali

Thank you.

I modify  it by the 'Regedit'(my OS is windows 7 x64):
open Regedit, find 'HKEY_CURRENT_USER\Console'
find the CodePage,Double Click,
then modify the type to 'decimal system',and modify the value to 
65001.
That's all.

Thank you,everyone.

Frank.


More information about the Digitalmars-d-learn mailing list