From 565876b79f08abf4d48a939ad26e7d78621c0860 Mon Sep 17 00:00:00 2001 From: q Date: Wed, 2 May 2012 22:38:21 +0300 Subject: [PATCH] testing error ignoring with utf encode --- Qalbum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Qalbum.py b/Qalbum.py index feec040..0c0ef8e 100755 --- a/Qalbum.py +++ b/Qalbum.py @@ -291,7 +291,7 @@ def getinfo(path): if not os.path.exists(os.path.join(path,'info.txt')): return '' reader = open(os.path.join(path,'info.txt'),'r') - return unicode(reader.read(),encoding="utf8").encode('ascii','xmlcharrefreplace') + return unicode(reader.read(),encoding="utf8",errors="ignore").encode('ascii','xmlcharrefreplace') def crumblinks(crumbs): ''' Create the HTML string for crumb trails '''