in reply to XML encoding ISO-8859-1

Please correct me if I'm wrong. I always thought if the XML file is encoded in one way all it's contents should be coded like that. Maybe you should change it file's encoding style to UTF-8?

But then ... maybe I'm just plain wrong in this case and always understood things wrong?

Regards... Stefan

Replies are listed 'Best First'.
Re: Re: XML encoding ISO-8859-1
by Anonymous Monk on Aug 23, 2001 at 13:18 UTC
    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