Skip to content

Commit 6e35aa6

Browse files
author
Sharoon Thomas
committed
Merge pull request #1 from mwoodward/master
Change text string to be translated to UTF-8 encoding.
2 parents 52ee9ad + 07b83e9 commit 6e35aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def translate(self, text, to_lang, from_lang=None,
8282
supported category is "general".
8383
"""
8484
params = {
85-
'text': text,
85+
'text': text.encode('utf8'),
8686
'to': to_lang,
8787
'contentType': content_type,
8888
'category': category,

0 commit comments

Comments
 (0)