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 martin.panter
Recipients Lukasa, martin.panter, r.david.murray
Date 2016-09-18.01:57:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474163821.58.0.283797117545.issue27716@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks to the fix for Issue 22233, now the response is parsed more sensibly, and the body can be read. The 0x85 byte now gets decoded with Latin-1:

>>> print(ascii(resp.getheader("Link")[:100]))
'<http://www.babla.cn/\xe8\x8b\xb1\xe8\xaf\xad-\xe6\xb3\xa2\xe5\x85\xb0\xe8\xaf\xad/>; rel="alternate"; hreflang="zh-Hans", <http://cs.bab.la/slov'

Here is a patch to document how to get the original bytes back (by “encoding” to Latin-1). Other than that, I don’t think there is much left to do for this bug.
History
Date User Action Args
2016-09-18 01:57:01martin.pantersetrecipients: + martin.panter, r.david.murray, Lukasa
2016-09-18 01:57:01martin.pantersetmessageid: <1474163821.58.0.283797117545.issue27716@psf.upfronthosting.co.za>
2016-09-18 01:57:01martin.panterlinkissue27716 messages
2016-09-18 01:57:00martin.pantercreate