Merge pull request #9970 from bdieterm/patch-4
fix encoding on StartPage file information
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user