- appIO: fixed an encoding error when trying to open a DXF file

This commit is contained in:
Marius Stanciu
2024-03-29 17:59:40 +02:00
parent 9be9e09417
commit ed148df75f
2 changed files with 2 additions and 1 deletions

View File

@@ -1988,7 +1988,7 @@ class appIO(QtCore.QObject):
else:
return "fail"
with open(filename) as f:
with open(filename, 'r', encoding='utf-8') as f:
file_content = f.read()
geo_obj.source_file = file_content