473,382 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 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 2488
> 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 is, I want to use Japanese and I'm finding it a tad...
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 the text file, the text always comes up as a bunch...
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 for using QT from python. I am able to take input...
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 currently do, and less than 5% in other foreign...
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 all languages except Japanese (I get question...
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 stored in a SQL server 2000 (in a nText field) -...
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 control over): XP (London & Tokyo),.NET 2.0 C#, 2...
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 default text in Japanese displays perfectly but when I...
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 observations (some factual, some anecdotal). I present...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.