From e6e6c337ac79ea307329843153e477f5f4f784c8 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Fri, 25 Jan 2008 08:31:38 +0000 Subject: [PATCH 1/1] Unicode handling of URLs fix --- rss2maildir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rss2maildir.py b/rss2maildir.py index b914286..2af32bc 100755 --- a/rss2maildir.py +++ b/rss2maildir.py @@ -151,7 +151,7 @@ class HTML2Text(HTMLParser): elif tag_name == u'a': for attr in attrs: if attr[0].lower() == u'href': - self.urls.append(attr[1]) + self.urls.append(attr[1].decode('utf-8')) self.curdata = self.curdata + u'`' self.opentags.append(tag_name) return -- 2.39.5