fix a utf8 problem that was blocking translate recursion
This commit is contained in:
commit
20dc0b0246
@ -33,6 +33,7 @@ class GoogleTranslate(Module):
|
|||||||
fromlang = whats[1]
|
fromlang = whats[1]
|
||||||
tolang = whats[2]
|
tolang = whats[2]
|
||||||
text = ' '.join(whats[3:])
|
text = ' '.join(whats[3:])
|
||||||
|
text = text.encode('utf-8')
|
||||||
|
|
||||||
langpair = '%s|%s' % (fromlang, tolang)
|
langpair = '%s|%s' % (fromlang, tolang)
|
||||||
gt_url = 'http://ajax.googleapis.com/ajax/services/language/translate?'
|
gt_url = 'http://ajax.googleapis.com/ajax/services/language/translate?'
|
||||||
|
Loading…
Reference in New Issue
Block a user