Maaterial: card writer, force to use utf-8

This commit is contained in:
Bernd Hahnebach
2021-07-13 17:55:21 +02:00
committed by GitHub
parent 78924196db
commit 9a564dd906

View File

@@ -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: