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 ncoghlan
Recipients ncoghlan
Date 2014-08-24.12:58:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
Last tweak, since the purpose is to fix the original incorrect decoding to latin-1, this should be defined as a decoding operation:

    def fix_decoding(data, encoding, errors="surrogateescape"):
        return data.encode("latin-1").decode(encoding, errors)
History
Date User Action Args
2014-08-24 12:58:24ncoghlansetrecipients: + ncoghlan
2014-08-24 12:58:24ncoghlansetmessageid: <[email protected]>
2014-08-24 12:58:24ncoghlanlinkissue22264 messages
2014-08-24 12:58:24ncoghlancreate