]> git.etc.gen.nz Git - whoisi.git/commitdiff
Some people use UNICODE in their titles, make sure we can print them out.
authorAndrew Ruthven <andrew@etc.gen.nz>
Tue, 23 Jun 2009 23:58:57 +0000 (11:58 +1200)
committerAndrew Ruthven <andrew@cerberus.etc.gen.nz>
Tue, 23 Jun 2009 23:58:57 +0000 (11:58 +1200)
services/command/feedparse.py

index ad35ffc3fbcebe31d1eb9e9e67cc29322ac19cde..968a667c544f11fa07487afea3c5957fa6663412 100644 (file)
@@ -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 = """