Google: Fix UnicodeEncodeError in Calc.

This commit is contained in:
Terje Hoås 2012-03-08 14:24:58 +01:00
parent 99ad2d193e
commit a1ab4b7ba0

View File

@ -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)