Change text string to be translated to UTF-8 encoding. #1

Merged
merged 1 commit into from Jul 16, 2011
View
@@ -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,