From a1ab4b7ba0d3bffac7656bd066d7f83f750564b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20Ho=C3=A5s?= Date: Thu, 8 Mar 2012 14:24:58 +0100 Subject: [PATCH] Google: Fix UnicodeEncodeError in Calc. --- plugins/Google/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Google/plugin.py b/plugins/Google/plugin.py index 4e9250820..9478ea10d 100644 --- a/plugins/Google/plugin.py +++ b/plugins/Google/plugin.py @@ -351,7 +351,7 @@ class Google(callbacks.PluginRegexp): js = simplejson.loads(js) if js['error'] == '': - irc.reply("%s = %s" % (js['lhs'], js['rhs'],)) + irc.reply("%s = %s" % (js['lhs'].encode('utf8'), js['rhs'].encode('utf8'),)) return url = self._googleUrl(expr)