How to display japanese Kanji inside a cmd window under windows?

I have an english Windows 2003 server with asiatic language support activated. The two only fonts available for the command window (cmd settings) are raster and lucida console. Neither the one nor the other display the Kanji correctly (displayed as question mark).

Is there a solution to get them displayed? Должен ли я выполнить какое-то преобразование в своем приложении перед выводом на консоль?

В данный момент я пишу UTF8, что также хорошо работает для некоторых символов, отличных от ASCII (например, öäüß). Исходный код, записываемый в консоль, имеет правильные данные (кандзи можно правильно просмотреть в отладчике). Если это важно, я пишу приложение на C #.

EDIT: I found this link which explains the issues behind the problem and presents a solution (involving native calls) for C#. This shall work well with .NET 4.5 (untested by me)

15
задан Comic Sans MS Lover 4 May 2012 в 21:08
поделиться