473,396 Members | 2,013 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,396 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 2493
> 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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.