fix encoding on StartPage file information

This commit is contained in:
bdieterm
2023-07-22 17:37:46 +02:00
committed by GitHub
parent 2167fb6f7e
commit e992fe291b

View File

@@ -151,7 +151,7 @@ def getInfo(filename):
# check for meta-file if it's really a FreeCAD document
if files[0] == "Document.xml":
try:
doc = str(zfile.read(files[0]))
doc = zfile.read(files[0]).decode('utf-8')
except OSError as e:
print ("Fail to load corrupted FCStd file: '{0}' with this error: {1}".format(filename, str(e)))
return None