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 janssen
Recipients janssen
Date 2008-06-10.18:11:51
SpamBayes Score 0.0237007
Marked as misclassified No
Message-id <1213121523.99.0.8342553488.issue3075@psf.upfronthosting.co.za>
In-reply-to
Content
Right now, the encoding argument added to
xml.dom.minidom.DOMObject.toxml() in Python 2.3 seems fairly useless. 
It has to be UTF-8.  But a one-line change to the implementation of
toprettyxml would make it useful; instead of the encoding error method
being "strict", make it "xmlcharrefreplace".  So change

    writer = codecs.lookup(encoding)[3](writer)

to

    writer = codecs.lookup(encoding)[3](writer, "xmlcharrefreplace")
History
Date User Action Args
2008-06-10 18:12:04janssensetspambayes_score: 0.0237007 -> 0.0237007
recipients: + janssen
2008-06-10 18:12:04janssensetspambayes_score: 0.0237007 -> 0.0237007
messageid: <1213121523.99.0.8342553488.issue3075@psf.upfronthosting.co.za>
2008-06-10 18:11:57janssenlinkissue3075 messages
2008-06-10 18:11:53janssencreate