473,786 Members | 2,398 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2585
> 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******** ************@21 6.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
5536
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 difficult to get PHP to understand. I have two files, a text file containing data to display and a php file with a script to display the data. I can get the contents of a text file displayed in English, no problemo, but in Japanese, it's another...
3
395
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 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
11
4769
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 in japanese. But I am unable to display them back to GUI. It displays some junk characters Can anyone suggest me some way how to debug the issue. The code used for tranferring data from view to document is: " codec =...
1
3093
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 languages including Japanese, it appears as if we would be best off using codepage of 1208 and UTF-8. We are thinking we would need to expand our 'char' and 'varchar' datatypes by four times to accommadate the Japanese data. Using 'varchar' should...
1
3775
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 marks when the data is Japanese). I can get Japanese to display when the text is static, i.e., embedded in the html, but have been unable to display it when it comes from the database. When I use Access to view the table, I can see that the...
4
5861
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) - Comments are printed through a MS-Access 2002 front-end... Most comments are in English, Spanish or French. Some comments are English + Japanese.
2
1706
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 text files from different sources, 1 database (in Tokyo). Working on GUI application (to be run in Tokyo) and Server exe (either in London or Tokyo). Application works with strings which contain both English and Japanese (typically english word...
11
3800
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 attempt to change the text following a button-click event, it displays as junk. I have tried setting the globalization tag in the web.config file but that does not help eiter. <globalization requestEncoding="UTF-8" responseEncoding="UTF-8"
12
2745
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 these mostly as food for thought, but I do make my own continent-by-continent recommendations at the bottom of the email. (My own linguistic biases are also disclosed at the bottom of the email.) Nationality of various technologists who use...
0
9496
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10164
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9961
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8989
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4066
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3669
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.