This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Goffi
Recipients Goffi
Date 2010-12-27.15:36:06
SpamBayes Score 2.3512133e-05
Marked as misclassified No
Message-id <1293464173.75.0.623330823257.issue10781@psf.upfronthosting.co.za>
In-reply-to
Content
G'day,

While translating my software to french, I realised that minidom's writexml method doesn't handle "encoding" parameter correctly: it changes the header of the resulting xml, but not the encoding itself (which it should according to the documentation: http://docs.python.org/library/xml.dom.minidom.html).

The given example doesn't work with writexml; but if I save by myself using the toxml's encoding parameter (like in the commented line), it works as expected.

Anyway, it would be better if minidom could handle unicode string directly.
History
Date User Action Args
2010-12-27 15:36:13Goffisetrecipients: + Goffi
2010-12-27 15:36:13Goffisetmessageid: <1293464173.75.0.623330823257.issue10781@psf.upfronthosting.co.za>
2010-12-27 15:36:06Goffilinkissue10781 messages
2010-12-27 15:36:06Gofficreate