testing error ignoring with utf encode
This commit is contained in:
@@ -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 '''
|
||||
|
||||
Reference in New Issue
Block a user