ability to send tweets containing unicode characters like cyrillic word 'тест'
This commit is contained in:
parent
5f1d0d4e90
commit
9133d0f10e
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ class Twython(object):
|
|||
|
||||
# Then open and load that shiiit, yo. TODO: check HTTP method and junk, handle errors/authentication
|
||||
if fn['method'] == 'POST':
|
||||
resp, content = self.client.request(base, fn['method'], urllib.urlencode(kwargs))
|
||||
resp, content = self.client.request(base, fn['method'], urllib.urlencode(dict([k, v.encode('utf-8')] for k, v in kwargs.items())))
|
||||
else:
|
||||
url = base + "?" + "&".join(["%s=%s" %(key, value) for (key, value) in kwargs.iteritems()])
|
||||
resp, content = self.client.request(url, fn['method'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue