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 serhiy.storchaka
Recipients dstufft, eric.araujo, julien.malard, miss-islington, serhiy.storchaka
Date 2018-09-09.07:06:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536476789.51.0.56676864532.issue34421@psf.upfronthosting.co.za>
In-reply-to
Content
I would prefer to use the backslashreplace error handler rather of the unicode-escape codec. Just as few lines above, but with ASCII encoding.

    msg = msg.encode('ascii', 'backslashreplace').decode('ascii')

It is still not clear to me why the current code purposed to handle this problem doesn't work in this case. We need to find the cause and fix the existing solution.
History
Date User Action Args
2018-09-09 07:06:29serhiy.storchakasetrecipients: + serhiy.storchaka, eric.araujo, dstufft, miss-islington, julien.malard
2018-09-09 07:06:29serhiy.storchakasetmessageid: <1536476789.51.0.56676864532.issue34421@psf.upfronthosting.co.za>
2018-09-09 07:06:29serhiy.storchakalinkissue34421 messages
2018-09-09 07:06:29serhiy.storchakacreate