in reply to 8-bit Clean XML Data I/O?
Many of the 8-bit encoding can be translated to Unicode and back again without loosing any information. You will need to choose an encoding that works well for this; Latin1 or CP1252 are reasonable choices. There are two ways to handle this in XML. The best way is probably write the XML in your encoding and tag it.
XML::Writer looks like it doesn't do any translation. You will need to write the chosen encoding, make sure the file is in binary mode, and write the strings. The parsers that XML::Simple support encodings on the file. But they need to know about the encoding because they translate everything into Unicode character data. Which are stored in Perl in UTF-8 and will need to be translated to your "safe" encoding after reading.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: 8-bit Clean XML Data I/O?
by samtregar (Abbot) on Feb 21, 2004 at 00:32 UTC | |
by iburrell (Chaplain) on Feb 22, 2004 at 20:41 UTC | |
by samtregar (Abbot) on Feb 22, 2004 at 21:42 UTC |