b6c9d08
--- /var/lib/python-support/python2.5/feedparser.py	2008-01-23 20:10:27.000000000 +0100
b6c9d08
+++ feedparser.py	2008-07-28 11:01:38.000000000 +0200
b6c9d08
@@ -1455,7 +1455,7 @@
b6c9d08
         # thanks to Kevin Marks for this breathtaking hack to deal with (valid) high-bit attribute values in UTF-8 feeds
b6c9d08
         for key, value in attrs:
b6c9d08
             if type(value) != type(u''):
b6c9d08
-                value = unicode(value, self.encoding)
b6c9d08
+                value = unicode(value, self.encoding, errors='replace')
b6c9d08
             uattrs.append((unicode(key, self.encoding), value))
b6c9d08
         strattrs = u''.join([u' %s="%s"' % (key, value) for key, value in uattrs]).encode(self.encoding)
b6c9d08
         if tag in self.elements_no_end_tag: