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 glebourgeois
Recipients ezio.melotti, glebourgeois, mrabarnett, serhiy.storchaka, vstinner
Date 2013-10-17.15:13:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382022780.7.0.461777997677.issue19279@psf.upfronthosting.co.za>
In-reply-to
Content
"Also, the usual way to decode by using the .decode method."

The original bug happened using requests library, so I have no leverage on the used method for decoding.

But if you used the "replace" mode with your methodology, you would have raised the same Exception : 

>>> content = b'+1911\' rel=\'stylesheet\' type=\'text/css\' />\n<link rel="alternate" type="application/rss+xml'
>>> content.decode("utf-7", "replace")
File "<stdin>", line 1, in <module>
  File "/lib/python3.3/encodings/utf_7.py", line 12, in decode
    return codecs.utf_7_decode(input, errors, True)
SystemError: invalid maximum character passed to PyUnicode_New
History
Date User Action Args
2013-10-17 15:13:00glebourgeoissetrecipients: + glebourgeois, vstinner, ezio.melotti, mrabarnett, serhiy.storchaka
2013-10-17 15:13:00glebourgeoissetmessageid: <1382022780.7.0.461777997677.issue19279@psf.upfronthosting.co.za>
2013-10-17 15:13:00glebourgeoislinkissue19279 messages
2013-10-17 15:13:00glebourgeoiscreate