From: Brett Parker Date: Fri, 25 Jan 2008 08:31:38 +0000 (+0000) Subject: Unicode handling of URLs fix X-Git-Url: https://git.sommitrealweird.co.uk/rss2maildir.git/commitdiff_plain/e6e6c337ac79ea307329843153e477f5f4f784c8 Unicode handling of URLs fix --- 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