Stefan Behnel schrieb:
> Johannes Bauer wrote:
>> when I read in a XML document with the xml.dom.minidom parser and write
>> it out again, an attribute is lost:
>>
>> Input:
>>
>> <?xml version="1.0" encoding="utf-8" ?>
>> [...]
>>
>> Output:
>> <?xml version="1.0" ?>
>>
>> How can I fix this?
> 
> You don't have to. UTF-8 is the default encoding, so the two lines above
> are equivalent.

Can I somehow force Python to generate it anyways? I have software which
complains if an explicit encoding is missing...

Kind regards,
Johannes

-- 
"Meine Gegenklage gegen dich lautet dann auf bewusste Verlogenheit,
verlästerung von Gott, Bibel und mir und bewusster Blasphemie."
         -- Prophet und Visionär Hans Joss aka HJP in de.sci.physik
                         <48d8bf1d$0$7510$54022...@news.sunrise.ch>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to