New submission from Goffi <go...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue10781> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com