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 Windson Yang
Recipients Windson Yang, brianvanderburg2, docs@python, ezio.melotti, scoder, serhiy.storchaka, upendra-k14
Date 2019-05-16.03:12:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557976339.18.0.545584521598.issue18911@roundup.psfhosted.org>
In-reply-to
Content
I added a PR for like this:

   .. note::

      You should specify the "xmlcharrefreplace" error handler when open a file with
      specified encoding::

         writer = open(
                filename, "w", encoding="utf-8",
                errors="xmlcharrefreplace")
         doc.writexml(writer, "", "  ", "utf-8")
History
Date User Action Args
2019-05-16 03:12:19Windson Yangsetrecipients: + Windson Yang, scoder, ezio.melotti, docs@python, serhiy.storchaka, brianvanderburg2, upendra-k14
2019-05-16 03:12:19Windson Yangsetmessageid: <1557976339.18.0.545584521598.issue18911@roundup.psfhosted.org>
2019-05-16 03:12:19Windson Yanglinkissue18911 messages
2019-05-16 03:12:19Windson Yangcreate