On Tue, 04 Jan 2011 11:47:32 +0200, Jun <bli...@naver.com> wrote:

Should I use different type and prefix or suffix similary to C++?

Place the following code anywhere at the top level in your program:

version(Windows)
{
        import std.c.windows.windows : SetConsoleCP, SetConsoleOutputCP;
        static this()
        {
                SetConsoleCP(65001);
                SetConsoleOutputCP(65001);
        }
}

This code should really be in the standard library, I think.

--
Best regards,
 Vladimir                            mailto:vladi...@thecybershadow.net

Reply via email to