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 pgimeno, serhiy.storchaka
Date 2019-11-14.18:13:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573755203.09.0.626340545964.issue38800@roundup.psfhosted.org>
In-reply-to
Content
It works to me (after fixing the assertion).

What Python version do you use? In Python 2 u'\uDD00' is encodable to UTF-8, so the error handler is not called. u'\uDD00yz'.encode('utf8') gives '\xed\xb4\x80yz'.
History
Date User Action Args
2019-11-14 18:13:23serhiy.storchakasetrecipients: + serhiy.storchaka, pgimeno
2019-11-14 18:13:23serhiy.storchakasetmessageid: <1573755203.09.0.626340545964.issue38800@roundup.psfhosted.org>
2019-11-14 18:13:23serhiy.storchakalinkissue38800 messages
2019-11-14 18:13:22serhiy.storchakacreate