chemical
February 9th, 2008, 07:54 PM
Hi all,
I'm trying to create an xml with a perl script using XML::Simple.
There are some titles in that I want to put into the xml that are in Japanese, but looks like that when I use XMLout() to write my data to the file some information gets lost/corrupted and opening the resulting xml the titles in japanese are completely garbled.
I later noticed that this doesn't happen only with foreign chars but also with special ones, like the little TM or mainly anything that isn't plain ascii.
I tried to use 'use utf8;' on top of the script or adding a xml declaration to the file saying to use utf8 encoding, but without luck...
I tried to output my Japanese titles to a plain text file and everything works fine, so it seems it's a XMLout() issue.
Everything should be working fine, but just isn't... any help will be appreciated!
Thanks!
I'm trying to create an xml with a perl script using XML::Simple.
There are some titles in that I want to put into the xml that are in Japanese, but looks like that when I use XMLout() to write my data to the file some information gets lost/corrupted and opening the resulting xml the titles in japanese are completely garbled.
I later noticed that this doesn't happen only with foreign chars but also with special ones, like the little TM or mainly anything that isn't plain ascii.
I tried to use 'use utf8;' on top of the script or adding a xml declaration to the file saying to use utf8 encoding, but without luck...
I tried to output my Japanese titles to a plain text file and everything works fine, so it seems it's a XMLout() issue.
Everything should be working fine, but just isn't... any help will be appreciated!
Thanks!