473,473 Members | 2,309 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to read Multilanguage (English+Chinese) ASCII files?

2 New Member
Ascii files with English+Chinese has to be read and written on to a UTF8 database. The Ascii files are created on the Chinese OS.
Jul 18 '07 #1
4 4092
JosAH
11,448 Recognized Expert MVP
Ascii files with English+Chinese has to be read and written on to a UTF8 database. The Ascii files are created on the Chinese OS.
Correct me if I'm wrong but how can Chinese text be stored as ASCII text? Or
do you mean that the files are UTF/8 encoded files already? If so, I don't
understand your problem.

kind regards,

Jos
Jul 18 '07 #2
VidyaRJ
2 New Member
Correct me if I'm wrong but how can Chinese text be stored as ASCII text? Or
do you mean that the files are UTF/8 encoded files already? If so, I don't
understand your problem.

kind regards,

Jos
Hello Jos,
Thank you for your response.

Issue:
One of the modules in our application (File Upload) uploades a payments file (in delimited format). This
module is used by different countries like China, Japan, Taiwan, Singapore etc. When these countries
upload the files from their respective OS (e.g China from a Chinese OS), since the file has both Chinese
and English characters which are read and written on to a UTF8 Database, the customers/users are told
to convert the file into UTF8 format and then upload. Now Customers are not comfortable with this conversion.
(as all the clients may not have a UTF8 conversion tool).

Now their question is, why should the file be converted to UTF8, if the file is from a Chinese/Japanese Os. (FYI the files are uploaded as .csv or .txt format). If the files are not converted to UTF8 format, the info is uploaded as garbage.
Jul 19 '07 #3
praveen2gupta
201 New Member
Hi

I tried to understand your problem. The file which your customer wants to upload should use utf-8 encoding. Since your database is in this encoding so in case of all other encoding either information will be lost or the data will be deformed or will be converted in to garbase.

ASCII files can't support chines and Japanies characters. Now I suggest you to prepare a tool for clients by which all clients can make file in the UTF-8 encoding.
Jul 19 '07 #4
emekadavid
46 New Member
try the Charset class encoders and decoders. If you have problems, share it after.
Jul 19 '07 #5

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

Similar topics

1
by: CYF | last post by:
My Computer : Window XP Pro English Version -> I have set the "Regional" to "Taiwan" Mysql 4.1.x -- > set to big5 already i am using C# to program. When i retrieve chinese character from the...
0
by: Lucas Tam | last post by:
Hi all, Is there anything special I need to do to output Chinese text into Combo boxes? I can display chinese text in labels, but when I databind to a combobox, all the chinese characters are...
2
by: Jack | last post by:
To whom may concern: In Asp.Net Calender control, how to display week days, like Wednesday as "Wed", Monday as "Mon", even my windows' region is set to Chinese? Thanks in advance! Jack...
0
by: alexsink | last post by:
I am trying to get apache content negotiation to redirect only zh-CN(mainland China, where Simplified Chinese translations are available) language types to Chinese web pages, and have all other...
0
by: slchslch | last post by:
Hi all, I have search through multiple forum to look for the respective solution for this problem but still i do not find any solution to this problem. I have Samsung SGH-D520 on hand which...
2
by: ad | last post by:
I use a TextBox for to enter an string. How can I determiniate if the stirng is Chinese or English?
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...
2
by: Wassy | last post by:
Hi, i have a website which contains both chinese and english content which is stored in a database. Each record in the dB has an english and Chinese field. If a user enters a search string i have...
2
by: Flying Kite | last post by:
Hi All, I want to know how to print chinese characters on Zebra Printer, following code working fine with English string, but it's not working for Chinese string. It shows ASCII characters instead...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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
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...
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
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.