You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "issue.py", line 26, in <module>
search = rdio.call('search', {'query': name, 'types': 'Album'})
File "/home/simao/spotify-export/rdio.py", line 77, in call
return json.loads(self.__signed_post('http://api.rdio.com/1/', params))
File "/home/simao/spotify-export/rdio.py", line 45, in __signed_post
req = Request(url, urlencode(params).encode('utf-8'),
File "/usr/lib/python2.7/urllib.py", line 1332, in urlencode
v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 1: ordinal not in range(128)
The text was updated successfully, but these errors were encountered:
Hello,
I am trying to call the api with a string containing unicde, but I always get an error, doesn't matter if I encode it with
encode
or not.The following code can be used to reproduce the issue:
This throws:
The text was updated successfully, but these errors were encountered: