Closed GoogleCodeExporter closed 8 years ago
this should be fixed by now as well.
Original comment by amr.hassan
on 28 Mar 2009 at 8:26
I still have this issue in 0.3.4
Also the same thing applies to _Request._download_response(self) where
quote_plus is
also called without escaping the parameters first.
Original comment by nichte
on 13 May 2009 at 12:57
Can you elaborate on how to reproduce the error?
Original comment by amr.hassan
on 13 May 2009 at 1:02
Sorry :)
It's basically the same as what sabailiez mentioned:
When I try to download data for anything that has unicode characters I get:
File "D:\projects\mainstream_meter\pylast.py" in _download_response
224. data.append('='.join((name, urllib.quote_plus(self.params[name]))))
File "C:\Python25\lib\urllib.py" in quote_plus
1211. s = quote(s, safe + ' ')
File "C:\Python25\lib\urllib.py" in quote
1205. res = map(safe_map.__getitem__, s)
Exception Type: KeyError at /user/Luthya/12month/
Exception Value: u'\xe9'
It works after changing line 224 to:
data.append('='.join((name, urllib.quote_plus(self.params[name].encode('utf-8')))))
Original comment by nichte
on 13 May 2009 at 1:28
Original issue reported on code.google.com by
sbaill...@gmail.com
on 27 Mar 2009 at 1:03