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 Lukáš.Němec
Recipients Lukáš.Němec
Date 2015-08-31.08:17:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441009044.09.0.443464909136.issue24967@psf.upfronthosting.co.za>
In-reply-to
Content
Please add errors='...' to print's kwargs and pass it to codecs that are called from print. Sometimes you have undecodable/unencodable characters that you want to remove from the printed text.

Now you need to call 'mytext'.encode('enc', errors='replace').decode('enc') to achieve the same result. This would be just a shortcut.

Thank you :)
History
Date User Action Args
2015-08-31 08:17:24Lukáš.Němecsetrecipients: + Lukáš.Němec
2015-08-31 08:17:24Lukáš.Němecsetmessageid: <1441009044.09.0.443464909136.issue24967@psf.upfronthosting.co.za>
2015-08-31 08:17:24Lukáš.Němeclinkissue24967 messages
2015-08-31 08:17:23Lukáš.Němeccreate