Discussion:
Displaying UNICODE(Japanese and Korean) characters on Console Window
(too old to reply)
Jakir
2003-07-04 20:16:14 UTC
Permalink
Hi

Is there any way to display Japanese and Korean characters at a same time on
the Console Window. This application can be
executed on English, Japanese, or Korean Windows 2000.

I have tried a sample in which i used the function "WriteConsoleW" and passing
it the UNICODE(wchar_t*) string. Before calling
this function i even tried to set the code page of the console, but it fails. I
even tried to set the code page of console to
UTF-8 and then use the "WriteConsole" function but it displays garbage on the
console. Before calling the function "WriteConsole"
i had converted the string from UNICODE to UTF-8 using the Windows
"MultiByteToWideChar" function and passing the 1st parameter
as CP_UTF8.

Is it really possible to display UNICODE or UTF-8 characters other then Latin-1
on console window.

Thanks & regards
Jakir
Paul Keinanen
2003-07-05 13:27:15 UTC
Permalink
Post by Jakir
Is it really possible to display UNICODE or UTF-8 characters other then Latin-1
on console window.
It is certainly possible to display non-Latin-1 characters in the
console window in UTF-16 format, provided that the selected _font_
supports it. The default raster fonts seem to do some fallback for
most Latin-x based characters, but the Lucida Console True Type font
displays the Latin, Greek and Cyrillic characters quit OK in the
console window. However, it does not support Arabic or the East Asian
scripts.

If I remember correctly, the East Asian variants of W2k also provided
additional font selections in the console window "Properties | Font "
tab, so the user can select a console font that supports the local
languages.

Paul

Continue reading on narkive:
Loading...