[issue10781] minidom Node.writexml method doesn't manage encoding parameter correctly

Goffi report at bugs.python.org
Mon Dec 27 16:36:13 CET 2010


New submission from Goffi <goffi at goffi.org>:

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.

----------
components: XML
files: test_minidom.py
messages: 124709
nosy: Goffi
priority: normal
severity: normal
status: open
title: minidom Node.writexml method doesn't manage encoding parameter correctly
versions: Python 2.6
Added file: http://bugs.python.org/file20174/test_minidom.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10781>
_______________________________________


More information about the Python-bugs-list mailing list