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;
On 07/16/2018 11:30 AM, zhani wrote:
i got some problem about using CJK in windows10 console.
here my code(a code file encoded the utf-8):
--
import std.stdio;
/*
static this(){
core.stdc.wchar_.fwide(core.stdc.stdio.stdout, 1);
On Monday, 16 July 2018 at 09:30:22 UTC, zhani wrote:
howdy :-)
i got some problem about using CJK in windows10 console.
[...]
oh, sorry for my mistake. here:
--
writeln("你好"); // C
writeln("こんにちは"); // J