This commit is contained in:
Kovid Goyal 2007-12-31 00:03:11 +00:00
parent e8f76739da
commit f53fc46c42

View file

@ -366,7 +366,11 @@ def fget(self):
try:
return dom.parseString(src)
except:
return dom.parseString(src.replace('\x00', '').strip())
try:
return dom.parseString(src.replace('\x00', '').strip())
except:
src = src.replace('\x00', '').strip().decode('latin1')
return dom.parseString(src.encode('utf-8'))
except zlib.error:
raise LRFException("Unable to decompress document meta information")