From ff9050665086d4cd315eb42fa400a93e0bf7fa27 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 13 Sep 2012 23:31:43 +0200 Subject: wolframalpha: Fixed unicode errors. --- modules/wolframalpha.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/wolframalpha.py b/modules/wolframalpha.py index f13cdcb..30bdfe6 100644 --- a/modules/wolframalpha.py +++ b/modules/wolframalpha.py @@ -42,7 +42,7 @@ class Module(object): if result is not None and result.text is not None: text = result.text text = whitespace_re.sub(' ', text) - results.append('\002%s\002: %s' % (pod.attrib['title'], text)) + results.append('\002%s\002: %s' % (pod.attrib['title'].encode('utf-8'), text.encode('utf-8'))) if len(results): self.irc.msg(target, ' '.join(results)) else: -- cgit v1.2.3