473,324 Members | 2,511 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,324 software developers and data experts.

Japanese text via Database from files

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 [Sybase] (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 followed by Japanese word) text.
Server application loads data from files, performs some work, inserting the result into the database (using insert commands) from which the GUI retrieves the result.
As the server program is run, some interim results are output to a text box.

Problem 1:
Openned file A using 'sr = new StreamReader( fileName, Encoding.Default )',
Running server in London, the encoding of the file is reported as 'iso-8859-1' [sr.CurrentEncoding], while running same code in Tokyo it's reported as 'iso-2022-jp'
Running server in London; run GUI in london, the text looks corrupted but when the GUI is run in Tokyo, the text looks ok.
Running server in Tokyo, with the GUI's in each location produces the same result.
The textbox contains the same text as the GUI reports (London text looks corrupted, Tokyo ok).


Problem 2: [Same program]
File 'B' in a different format, openned using 'sr = new StreamReader( fileName, true)'. File type is reported as UTF-8 in both locations.
Running server in London, the GUI in both locations gives the same result for the text strings: '?????'.
Running server in Tokyo, gives correct display from Tokyo GUI but '?????' from London GUI.
The textbox contains the correct text regardless of where the server exe is run from.

Problem 1, I can sort of live with, but I really don't get problem 2. Perhaps something is happening to the text when it's inserted (ODBC) into the database? In which case, could I convert the text, perhaps into the same format as read from File A?
Mar 12 '07 #1
2 1663
kenobewan
4,871 Expert 4TB
I believe that this situation may be helped by .net localization. Here is an article that may help:
Localizing ASP.NET Applications
Mar 12 '07 #2
Well, this is a WinForms app so I'm not sure how much that would help.
I've tried setting current culture to ja-JP, so the app was running with same culture regardless of location but that didn't help.

I believe that this situation may be helped by .net localization. Here is an article that may help:
Localizing ASP.NET Applications
Mar 13 '07 #3

Sign in to post your reply or Sign up for a free account.

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...
1
by: David Thomas | last post by:
Hi there, a while ago, I posted a question regarding reading japanese text from a text file. Well, since I solved the problem, I thought I'd post my solution for the benefit of other people with...
4
by: Leora Wenger | last post by:
We moved some pages of Japanese, Korean and Chinese from one server to another. In doing so, the users with Windows XP could still see the Asian fonts. However, a user with Windows 2000 could no...
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...
12
by: paulgor | last post by:
Hi, May be it's a know issue but my search brought nothing... We have static HTML files with Japanese text in UTF-8 encoding - it's on-line Help for our application, so there are no Web...
0
by: mikepl746 | last post by:
I'm trying to run the svn command in a System.Diagnostics.Process to parse the StandardOutput. If I run the command in a CMD window while Regional settings are set to Japanese I see something like...
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) -...
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.