From ce1890b0a6ad50e53b66e3fbb25c5857746ca54e Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Wed, 24 Jun 2009 11:58:57 +1200 Subject: [PATCH] Some people use UNICODE in their titles, make sure we can print them out. --- services/command/feedparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/command/feedparse.py b/services/command/feedparse.py index ad35ffc..968a667 100644 --- a/services/command/feedparse.py +++ b/services/command/feedparse.py @@ -404,7 +404,7 @@ class FeedUpdateDatabaseCommand(BaseCommand): updated = datetime(*up) print(" inserting new entry for site %s" % self.site_id) - print(" title: %s" % entry.get("title", None)) + print(" title: %s" % entry.get("title", None).encode('ascii', 'replace')) print(" link: %s" % entry.get("link", None)) q = """ -- 2.30.2