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 brianvanderburg2
Recipients brianvanderburg2
Date 2013-09-03.05:36:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
When I have unicode data to save, it seems that it does not save correctly, giving an encode error. I know this exists on 2.7 and from checking the code in xml/dom/ it looks like it does in 3.2 as well.

The method call that seem to be problematic is doc.writexml(open(filename, "wb"), "", "  ", "utf-8")

Currently I found this to work: doc.writexml(, "w", "utf-8"), "", "  ", "utf-8")

It seems like this should be handled by the writexml method since it already has the specified encoding.
Date User Action Args
2013-09-03 05:36:59brianvanderburg2setrecipients: + brianvanderburg2
2013-09-03 05:36:59brianvanderburg2setmessageid: <>
2013-09-03 05:36:59brianvanderburg2linkissue18911 messages
2013-09-03 05:36:58brianvanderburg2create