ElementTree XML parsing problem

Ervin Hegedüs airween at gmail.com
Thu Apr 28 02:24:41 EDT 2011


On Thu, Apr 28, 2011 at 07:57:28AM +0200, Stefan Behnel wrote:
> >So, I started change the codepage mark of xml:
> >
> ><?xml version="1.0" encoding="UTF-8" ?>  - same result
> ><?xml version="1.0" encoding="ISO-8859-2" ?>  - same result
> ><?xml version="1.0" encoding="ISO-8859-1" ?>  - same result
> You probably changed this in an editor that supports XML and thus
> saves the file in the declared encoding.

no. I've saved the XML as UTF8, and didn't change the _file_
encoding - just modified the XML header, nothing else...

(I'm using Geany - it doesn't realize what user wrote in file,
just can save file as another encodign, when user choose one)

> Switching between the three
> by simply changing the first line (the XML declaration) and not
> adapting the encoding of the document itself would otherwise not
> yield the same result for the document given above.

yes, that's what I wrote exactly.


More information about the Python-list mailing list