diff --git a/__init__.py b/__init__.py index e9e6d18..fb78cdf 100644 --- a/__init__.py +++ b/__init__.py @@ -82,7 +82,7 @@ def translate(self, text, to_lang, from_lang=None, supported category is "general". """ params = { - 'text': text, + 'text': text.encode('utf8'), 'to': to_lang, 'contentType': content_type, 'category': category,