From 9e3a2c963879b4c624398395e337fc4550288097 Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Wed, 6 Aug 2008 00:25:05 -0500 Subject: [PATCH] Damn you, Unicode! --- plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index cbfcd10..f78064e 100644 --- a/plugin.py +++ b/plugin.py @@ -50,7 +50,7 @@ class Shipping(callbacks.Plugin): description = item.getElementsByTagName('description')[0] data = description.firstChild.data data = re.sub('\s*
\s*', '', data).strip() - data = re.sub('\s\s+', ' ', data).strip() + data = re.sub('\s\s+', ' ', data).strip().encode('utf-8') irc.reply(data) ups = wrap(ups, ['text']) -- 2.11.4.GIT