Ashish Kulkarni skrev den 30-07-2008 16:05:
Hi
Has any one worked with creating a XML file from database which has Japanese database which has 3 byte characters.
The AS400 file is created with CCSID 5026, i need to get data from this file and create XML file, which will be send to other program
Currently the issue is when i create XML file with UTF-8 these japanese characters become some thing unreadable
So how do i convert these characters to readable UTF-8? or do i have to create XML file with some other encoding.
Any ideas, has anyone worked with project where you are need to get data from non English database into a XML file
When you have your character set conversion set up correctly, just output the characters on the form

&#xyz;

where xyz is the unicode number for the character in question. This allow you to keep your generated XML within standard ascii which has the same representation in ISO-8859-1 and UTF-8.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.