diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2012-09-13 23:31:43 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2012-09-13 23:31:43 +0200 |
commit | ff9050665086d4cd315eb42fa400a93e0bf7fa27 (patch) | |
tree | 02db73f6b02b7abd04f54df63ff38e07ef482086 /modules | |
parent | 2fe6306aeec45e28512ab8d42c04ea36c1779995 (diff) |
wolframalpha: Fixed unicode errors.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/wolframalpha.py | 2 |
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: |