Merge pull request #9970 from bdieterm/patch-4

fix encoding on StartPage file information
This commit is contained in:
Yorik van Havre
2023-07-26 10:52:00 +02:00
committed by GitHub

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