summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2012-09-13 23:31:43 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2012-09-13 23:31:43 +0200
commitff9050665086d4cd315eb42fa400a93e0bf7fa27 (patch)
tree02db73f6b02b7abd04f54df63ff38e07ef482086
parent2fe6306aeec45e28512ab8d42c04ea36c1779995 (diff)
wolframalpha: Fixed unicode errors.
-rw-r--r--modules/wolframalpha.py2
1 files changed, 1 insertions, 1 deletions
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: