Closed GoogleCodeExporter closed 9 years ago
I don't know if this is a related bug or not, but if I lowercase the keys in
the http_headers dictionary in parse() like this:
http_headers = {k.lower():v for k, v in result.get('headers', {}).items()} #
dict comp
then I still get the same error as before, but this time 'encoding':
'iso-8859-1' becomes 'encoding': 'iso-8859-2'.
Neither of which is the correct encoding, UTF-8.
Original comment by Yossi.Ra...@gmail.com
on 22 May 2011 at 8:06
I'm not able to reproduce this using the feed you linked to using Python 3.0,
3.1, or 3.2, with and without the ported sgmllib included in the source
distribution. Would you download the latest source code, linked below, and see
if you're still getting the error? If you are, please use wget or curl to grab
the feed and upload it as an attachment to this bug report.
https://feedparser.googlecode.com/svn/trunk/feedparser/feedparser.py
Original comment by kurtmckee
on 29 May 2011 at 6:16
Original comment by kurtmckee
on 29 May 2011 at 6:18
i just tested this now with r554 and the bug appears to have been fixed.
i think i was using r377 (?) earlier as that is what comes in the "official
download" for 5.0.1
Original comment by Yossi.Ra...@gmail.com
on 29 May 2011 at 10:44
Glad to hear it, thanks for the quick response!
Original comment by kurtmckee
on 30 May 2011 at 8:39
Original issue reported on code.google.com by
Yossi.Ra...@gmail.com
on 22 May 2011 at 7:43