472,353 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

displaying japanese text on English OS

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
Jul 21 '05 #1
3 2394
> 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?

--
Mihai
-------------------------
Replace _year_ with _ to get the real email
Jul 21 '05 #2
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
"Mihai N." <nm**************@yahoo.com> wrote in message
news:Xn********************@216.148.227.77...
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?

--
Mihai
-------------------------
Replace _year_ with _ to get the real email

Jul 21 '05 #3
- 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?

--
Mihai
-------------------------
Replace _year_ with _ to get the real email
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Thomas | last post by:
Hi there, I am trying to store data in a text file and output it to the browser using PHP. All very easy - if I was using English! the problem...
3
by: Benoit Martin | last post by:
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...
11
by: prats | last post by:
I want to write a GUI application in PYTHON using QT. This application is supposed to take in Japanese characters. I am using PyQt as the wrapper...
1
by: tony.pahl | last post by:
We are converting a data warehouse to a Unicode database to get ready for multilingual support. If we will have 95% of our data in English as we...
1
by: bjs | last post by:
I am using MS SQL Server 2000 and 2005, IIS 5,0 and ASP. I am able to display data that has been selected from a Unicode column in the database in...
4
by: DL | last post by:
Hi, Our school has an application in which : - Teachers enter comments through a web interface built in asp (not asp.net). - Comments are...
2
by: DragonShade | last post by:
To be honest, I'm not sure if this is a .NET issue, some configuration on a PC, or a setting in a database but here goes: Environment (have NO...
11
by: pardesiya | last post by:
Friends, I am having trouble displaying Japanese text within a textbox (or anywhere else) in an aspx page with .net 2.0 framework. Initial...
12
by: Steve Howell | last post by:
The never-ending debate about PEP 3131 got me thinking about natural languages with respect to Python, and I have a bunch of mostly simple...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.