displaying japanese text on English OS

  • Thread starter Thread starter Benoit Martin
  • Start date Start date
B

Benoit Martin

in my windows app, I have some japanese text that I load from a text file
and display on a label. No matter what type of encoding I try to use on the
text file, the text always comes up as a bunch of unreadable characters on
my label.

Are there settings/properties for a label on a windows form to be able to
read japanese text? Is it when I raed the file that it gets screwed up (I
use fileOpen and LineInput)?

Looking for pointers here

THanks
 
in my windows app, I have some japanese text that I load from a text file
and display on a label. No matter what type of encoding I try to use on the
text file, the text always comes up as a bunch of unreadable characters on
my label.
I assume we are talking a .NET application.
Several questions to get this started:
- What OS are we talking? If it is 95/98/Me, we can stop here
- Do you have Japanese support installed
- What is the encoding of the text file?
 
Sorry for the lack of info...
- We are talking about a Windows app developped in .NET using VS.Net 2003
- OS: Windows 2000 Pro
- Japanese support: I'm not sure what you are talking about. I did not
install any Japanese thing in Windows except loading a Japanese font that I
use in my app (MSMincho)
- The file currently has Unicode encoding but I tried to change the encoding
to UTF-8 and it didn't work

Thank you
 
- We are talking about a Windows app developped in .NET using VS.Net 2003
- OS: Windows 2000 Pro
Ok, this combination will work.
Let's get it there :-)
- Japanese support: I'm not sure what you are talking about. I did not
install any Japanese thing in Windows except loading a Japanese font that I
use in my app (MSMincho)
Start "Control Panel", then go to "Regional Options", the "General" tab.
Check in the list at the bottom ("Language settings for the system") if
Japanese is listed and the check-box is checked.
This means you have support for Japanese installed (which is more than a
font).
- The file currently has Unicode encoding but I tried to change the
encoding to UTF-8 and it didn't work
Let's try some things:
- copy-paste some Japanese characters (Yahoo Japan is a handy place) into
one of your forms. Is is ok? And at runtime?
- Option: from code so this.somelabel.Text = "\u6565"; Is it a Japanese
character?
- Question: how do you read the file?
- Question: when you try to display what you read, what do you get?
Nothing? Junk?
- Question: opening the text file in Notepad and setting the font to
"MS Gothic" shows Japanese (I guess yes, just making sure)
- How do you try to display it?
 
Back
Top