Fix feed problem for non-ascii names. From Pasi Eronen.

- Legacy-Id: 1449
This commit is contained in:
Henrik Levkowetz 2009-04-21 13:36:18 +00:00
parent d6401f9e79
commit 65b4f738ae

View file

@ -19,8 +19,8 @@ class LatestIprDisclosures(Feed):
return item.submitted_date
def item_author_name(self, item):
s = item.get_submitter()
if s:
return s.name
if s:
return unicode(s.name, encoding='utf-8', errors='replace')
return None
def item_author_email(self, item):
s = item.get_submitter()