January 25, 2015 Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dmitry | On Sunday, 25 January 2015 at 20:24:30 UTC, Dmitry wrote:
> On Sunday, 25 January 2015 at 18:23:03 UTC, Suliman wrote:
>> Why we can not simply automatically switch CMD to UTF-8 before app start?
>> I do not see any minuses in this solution.
>
> +1. I use
>
> import std.stdio;
> import std.c.windows.windows;
>
> void main()
> {
> SetConsoleOutputCP(65001);
> writeln(utf-8 text);
> }
If you don't modify the font,display will be bad.
|
January 26, 2015 Re: 2.067 should modify writeln function, make it display correctly ANSI characters in CMD. Exe | ||||
---|---|---|---|---|
| ||||
Posted in reply to FrankLike | On Sunday, 25 January 2015 at 21:59:41 UTC, FrankLike wrote:
> If you don't modify the font,display will be bad.
Indeed. Although in my case it is not necessary (it shows the localized texts in the localized os - so, default fonts supports it language).
|
Copyright © 1999-2021 by the D Language Foundation