fix a utf8 problem that was blocking translate recursion

This commit is contained in:
Brian S. Stephan 2010-07-30 22:03:51 -05:00
commit 20dc0b0246
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?'