On 23 November 2012 16:34, Erwin Waterlander <waterlan@xs4all.nl> wrote:
* There is no way an Unicode console program can output Chinese text
(Using WriteConsoleW()) in the Windows Console when the active code page
is not cp936 (because the font is not available). This is actually
weird, because the console code page is for non-Unicode programs.

I can successfully output "测试" with the following line of code, when the console code page is 437 or 1252:

WriteConsoleW(hConsole, L"\u6d4b\u8bd5\n", 3, &dwLen, NULL);

However, I know my system locale is Simplified Chinese. Can you have a try whether it works for you?

Wu Yongwei
URL: http://wyw.dcweb.cn/