From 9133d0f10ec39f7e774af7d5d8730db3a27150ca Mon Sep 17 00:00:00 2001 From: Eugen Pyvovarov Date: Wed, 8 Dec 2010 02:39:06 -0800 Subject: [PATCH] =?UTF-8?q?ability=20to=20send=20tweets=20containing=20uni?= =?UTF-8?q?code=20characters=20like=20cyrillic=20word=20'=D1=82=D0=B5?= =?UTF-8?q?=D1=81=D1=82'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twython/twython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twython/twython.py b/twython/twython.py index d1822ce..f298867 100644 --- a/twython/twython.py +++ b/twython/twython.py @@ -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'])