in reply to XML Simple Charset Q?
You have to tell the XML parser used by XML::Simple that your data is in ISO-8859-1 (that's latin1 for the rest of us), otherwise your data is NOT XML.
Add this XML declaration at the top of your XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>But don't think that's enough... the parser (expat) will convert your data to utf8, so when you output it you might want to convert it back to latin1. Look at Unicode and locales for a recent thread on the subject.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: XML Simple Charset Q?
by dingus (Friar) on Nov 25, 2002 at 18:16 UTC | |
by John M. Dlugosz (Monsignor) on Nov 25, 2002 at 19:52 UTC | |
by jkahn (Friar) on Nov 25, 2002 at 20:03 UTC | |
by John M. Dlugosz (Monsignor) on Nov 25, 2002 at 21:59 UTC |