- appIO: fixed an encoding error when trying to open a DXF file
This commit is contained in:
@@ -10,6 +10,7 @@ CHANGELOG for FlatCAM Evo beta
|
|||||||
29.03.2024
|
29.03.2024
|
||||||
|
|
||||||
- continue refactoring methods from the appMain
|
- continue refactoring methods from the appMain
|
||||||
|
- appIO: fixed an encoding error when trying to open a DXF file
|
||||||
|
|
||||||
28.03.2024
|
28.03.2024
|
||||||
|
|
||||||
|
|||||||
@@ -1988,7 +1988,7 @@ class appIO(QtCore.QObject):
|
|||||||
else:
|
else:
|
||||||
return "fail"
|
return "fail"
|
||||||
|
|
||||||
with open(filename) as f:
|
with open(filename, 'r', encoding='utf-8') as f:
|
||||||
file_content = f.read()
|
file_content = f.read()
|
||||||
geo_obj.source_file = file_content
|
geo_obj.source_file = file_content
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user