Error when trying to write unicode xml to zipfile

Stefan Behnel stefan.behnel-n05pAM at web.de
Tue Jul 10 13:42:20 CEST 2007


Martin v. Löwis wrote:
>> Unless, obviously, you were serialising to a non-utf8 encoding. But since the
>> "toxml()" method seems to return unicode here (which sounds surprising), I
>> expect it a) to provide no XML declaration at all or b) to be broken anyway.
> 
> Or c) the user forgot to specify the encoding= parameter in toxml().

Then I would expect it a) to serialise to a UTF-8 compatible encoding that
does not require a declaration (which excludes Python unicode) or b) to be
broken. :)

Stefan



More information about the Python-list mailing list