[XML-SIG] problems reading iso-8859-1 data

Alan Kennedy pyxml@xhaus.com
Mon, 30 Apr 2001 09:24:12 +0100


Don,

Just a quick suggestion.

> I have an XML file with iso-8859-1 encoding. The sax
> parser (expat) seems to translating charaters above 128
> to to separate characters.
> For example "=E9" in the xml file is being interpreted as
> "=C3=A9" by the parser.
> (I'm running python 1.5.2 with PyXML 0.6.5)
>
> Am I missing something obvious?

Have you placed an encoding declaration at the top of your XML file, i.=
e.
something along the lines of

<?xml version=3D"1.0" encoding=3D"iso-8859-1"?>

I'm parsing iso-8859-1 files containing such characters without problem=
=2E

Just a suggestion.

Alan.