Guillaume Lebourgeois added the comment:
"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 wo
Guillaume Lebourgeois added the comment:
My fault, bad paste. Should have written :
>>> content = b'+1911\' rel=\'stylesheet\' type=\'text/css\' />\n>> rel="alternate" type="application/rss+xml'
>>> codecs.utf
New submission from Guillaume Lebourgeois:
After the fetch of a webpage with a wrongly declared encoding, the use of
codecs module for a conversion crashes.
The issue is reproducible this way :
>>> content = b"+1911\' rel=\'stylesheet\' type=\'text