From 633fdf34ed152f06b123e7b3167177bf385f49bb Mon Sep 17 00:00:00 2001 From: "M. Hecker" Date: Fri, 28 Nov 2014 14:59:43 +0100 Subject: [translator] fixes broken page encoding --- data/rbot/plugins/translator.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'data') diff --git a/data/rbot/plugins/translator.rb b/data/rbot/plugins/translator.rb index 33821638..833701c3 100644 --- a/data/rbot/plugins/translator.rb +++ b/data/rbot/plugins/translator.rb @@ -128,6 +128,7 @@ class GoogleTranslator < Translator def do_translate(text, from, to) agent = Mechanize.new + agent.user_agent_alias = 'Linux Mozilla' page = agent.get URL form = page.form_with(:id => 'gt-form') form.sl = from -- cgit v1.2.3