Fix utf-8 error in GoogleTranslate

This commit is contained in:
kad 2010-07-30 21:22:16 -05:00
parent d561d16e64
commit 92d5b5d94e
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ class GoogleTranslate(Module):
fromlang = whats[1]
tolang = whats[2]
text = ' '.join(whats[3:])
text = text.encode('utf-8')
langpair = '%s|%s' % (fromlang, tolang)
gt_url = 'http://ajax.googleapis.com/ajax/services/language/translate?'