kennethreitz/requests — Issue #338: LookupError in requests, not in urllib2
Author: samuelclay
Created: 2012-01-06 05:07:45+00:00
State: open

>>> url = 'http://dilbert.com'
>>> len(urllib2.urlopen(url).read())
30194
>>> len(requests.get(url).content)
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.macosx-10.7-intel/egg/requests/models.py", line 713, in content
LookupError: unknown encoding: utf-8lias
>>>