From 9a564dd906f30b6beccc14e15e7931f83ade073c Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 13 Jul 2021 17:55:21 +0200 Subject: [PATCH] Maaterial: card writer, force to use utf-8 --- src/Mod/Material/importFCMat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Material/importFCMat.py b/src/Mod/Material/importFCMat.py index 6b43218e3a..9b505acfeb 100644 --- a/src/Mod/Material/importFCMat.py +++ b/src/Mod/Material/importFCMat.py @@ -196,7 +196,7 @@ def write(filename, dictionary, write_group_section=True): if FreeCAD.GuiUp: QtGui.QMessageBox.critical(None, "No card name", error_message) return - f = pythonopen(filename, "w") + f = pythonopen(filename, "w", encoding="utf-8") # write header # first five lines are the same in any card file, see comment above read def if header["CardName"] != card_name_file: