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 benspiller, docs@python, ezio.melotti, serhiy.storchaka, steven.daprano, terry.reedy
Date 2016-05-12.12:31:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463056303.99.0.690781462111.issue26369@psf.upfronthosting.co.za>
In-reply-to
Content
If str.encode() raises a decoding exception, this is a programming bug. It would be bad to hide it.

FYI, the default encoding is not hardcoded 'ascii'. Google "Changing default encoding in Python". Maybe this will help in your program.
History
Date User Action Args
2016-05-12 12:31:44serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, ezio.melotti, steven.daprano, docs@python, benspiller
2016-05-12 12:31:43serhiy.storchakasetmessageid: <1463056303.99.0.690781462111.issue26369@psf.upfronthosting.co.za>
2016-05-12 12:31:43serhiy.storchakalinkissue26369 messages
2016-05-12 12:31:43serhiy.storchakacreate