HighTechTalks DotNet Forums  

Display of Japanese and Chinese Text in a Textbox

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss Display of Japanese and Chinese Text in a Textbox in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ronnie Thompson
 
Posts: n/a

Default Display of Japanese and Chinese Text in a Textbox - 02-08-2005 , 03:31 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
be appreciated.

Reply With Quote
  #2  
Old   
Mihai N.
 
Posts: n/a

Default Re: Display of Japanese and Chinese Text in a Textbox - 02-09-2005 , 01:17 AM






Quote:
I have a C# application on Windows 2000. When typing in a text box using
....
show the characters properly without having to select Reconversion.
Select a Japanese font.

--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Replace _year_ with _ to get the real email


Reply With Quote
  #3  
Old   
Ronnie Thompson
 
Posts: n/a

Default Re: Display of Japanese and Chinese Text in a Textbox - 02-09-2005 , 12:23 PM



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?

"Mihai N." wrote:

Quote:
I have a C# application on Windows 2000. When typing in a text box using
....
show the characters properly without having to select Reconversion.
Select a Japanese font.

--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Replace _year_ with _ to get the real email


Reply With Quote
  #4  
Old   
Mihai N.
 
Posts: n/a

Default Re: Display of Japanese and Chinese Text in a Textbox - 02-10-2005 , 03:13 AM



Quote:
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?
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]
------------------------------------------
Replace _year_ with _ to get the real email


Reply With Quote
  #5  
Old   
AT
 
Posts: n/a

Default Re: Display of Japanese and Chinese Text in a Textbox - 02-15-2005 , 07:57 PM



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


Reply With Quote
  #6  
Old   
Steven Cheng
 
Posts: n/a

Default Re: Display of Japanese and Chinese Text in a Textbox - 02-16-2005 , 08:56 PM



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


"Marin Millar" <marinm (AT) online (DOT) microsoft.com> wrote

Quote:
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




Reply With Quote
  #7  
Old   
Mihai N.
 
Posts: n/a

Default Re: Display of Japanese and Chinese Text in a Textbox - 02-17-2005 , 01:05 AM



"Steven Cheng" <v-schang (AT) microsoft (DOT) com> wrote in
news:#Kop4PJFFHA.3376 (AT) TK2MSFTNGP12 (DOT) phx.gbl:

Quote:
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


"Marin Millar" <marinm (AT) online (DOT) microsoft.com> wrote in message
news:NfAnGK8EFHA.3824 (AT) TK2MSFTNGXA01 (DOT) phx.gbl...
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
This was my initial advice 8 days ago :-)


--
Mihai Nita [Microsoft MVP, Windows - SDK]
------------------------------------------
Replace _year_ with _ to get the real email


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.