On Monday, 16 July 2018 at 18:16:45 UTC, ag0aep6g wrote:
On 07/16/2018 11:30 AM, zhani wrote:
[...]

Try this:

----
import std.stdio: writeln;
import std.exception: enforce;
import core.sys.windows.windows: CP_UTF8, SetConsoleOutputCP;
void main()
{
    SetConsoleOutputCP(CP_UTF8).enforce;
    writeln("Allo");
    writeln("こんにちは");
    writeln("你好");
    writeln("안녕하세요");
}
----

thank you for reply. :-)
i removed a code that my cheated and solved it.

i still, don't know why dmd didn't support CJK by default when write a console.
Dlang must be a world-wise for everyone.

anyway, thank you so much.

Reply via email to