There is no way to set the encoding for the strings, you will have to convert them.
Search for Unicode or character conversion or encoding and you will find tons of nodes describing how to go from UTF-8 to ISO-8859-1 (use Text::Iconv).
| [reply] |
| [reply] |
You are right in that all of the file is encoded in ISO-8859-1 and I account for this by setting the ProtocolEncoding of the Parser. The problem is, that the strings I get *back* from the Parser are NOT in the same encoding, but in UTF-8 (it says so somewhere in the documentation).
Changing the encoding of the input file would be an option, but how do I do this? Just putting 'encoding="UTF-8"' into the XML declaration does not work, because then I get malformedness errors (because the input file is not in UTF-8).
Robert
| [reply] |