Groups | Blog | Home
all groups > dotnet internationalization > february 2005 >

dotnet internationalization : Display of Japanese and Chinese Text in a Textbox


Ronnie Thompson
2/8/2005 12:31:04 PM
I have a C# application on Windows 2000. When typing in a text box using the
Japanese or Chinese keyboard, the characters appear properly. However, once
focus is lost on the field, the characters display as a series of boxes. I
must highlight the text, right-click, and select Reconversion in order to
display the characters again. Is this the proper behavior? I see the same
behavior in Notepad. However, I have noticed that Grids within my application
show the characters properly without having to select Reconversion.

I am unsure if my application or my OS settings are a factor. Any help would
Mihai N.
2/8/2005 10:17:09 PM
[quoted text, click to view]
Select a Japanese font.

--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Ronnie Thompson
2/9/2005 9:23:06 AM
Select a Japanese font where? Does the text box need to be programmed to
display a Japanese font ? Or is there a Windows setting that needs to be
applied to allow applications to utilize the Japanese font?

[quoted text, click to view]
Mihai N.
2/10/2005 12:13:02 AM
[quoted text, click to view]

No, it is not an OS thing. Since you have the proper input methods and you
can see all ok while the IME is active (when you type or Reconvert), it means
the system has all that is needed.
Also, if you select your text, select Reconversion and it is ok, it means
your text box does not damage the data, is just unable to display it.
Boxes usually means "missing glyph" in most fonts.
This is how I concluded you have to select a font that supports Japanese.

Now, where you have to do it, only you can tell, because only you know what
kind of application it is. Is ASP.NET, Console, Form based? Is the control a
standard text control or some custom control?
The only hint I can give you without this info is that usually you don't want
to set the font "per control", but per dialog/window.
Also, if it is a form, then the default font is ok for Japanese. So if it is
a form with a standard edit box and is not working, it is something you
probably changed.

You tell me more, I tell you more, this is the deal :-)


--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
marinm NO[at]SPAM online.microsoft.com
2/16/2005 12:57:36 AM
One more thing to check is the font settings. In Windows Forms
applications, using the default font 'Microsoft Sans Serif" should map to
the correct font for the script you are trying to enter. Changing to
another font may cause a problem. Marin Millar
Mihai N.
2/16/2005 10:05:21 PM
"Steven Cheng" <v-schang@microsoft.com> wrote in
news:#Kop4PJFFHA.3376@TK2MSFTNGP12.phx.gbl:

[quoted text, click to view]

This was my initial advice 8 days ago :-)


--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Steven Cheng
2/17/2005 9:56:58 AM
Yes, displaying empty square is usually caused by incorrect font setting.
The underlying charater bytes are still ok, not damaged. Please have try
adjusting the font of the textbox.

Steven


[quoted text, click to view]

AddThis Social Bookmark Button