From 0fc81ccfc7e19ebe20011649bbb186c092fd1cfd Mon Sep 17 00:00:00 2001 From: bdieterm <119257544+bdieterm@users.noreply.github.com> Date: Sat, 22 Jul 2023 17:37:46 +0200 Subject: [PATCH] fix encoding on StartPage file information --- src/Mod/Start/StartPage/StartPage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Start/StartPage/StartPage.py b/src/Mod/Start/StartPage/StartPage.py index 5fbdeba26c..24e78efd5f 100644 --- a/src/Mod/Start/StartPage/StartPage.py +++ b/src/Mod/Start/StartPage/StartPage.py @@ -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