Skip to content

Commit

Permalink
set encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlWalther committed Dec 15, 2024
1 parent 0cb7f66 commit b3ff8bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .CI/tests/translate_test_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
cxf_json = test_case + ".jsonld"
cdl_plc.Cdl2Plc(
cxf_json,
output_folder='check_translation_to_IEC_XML/',
# output_folder='check_translation_to_IEC_XML/',
debug=True,
).translate()
2 changes: 1 addition & 1 deletion cdl_plc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ def create_iec_xml(self, debug=False):
os.makedirs(directory)

# Writing to sample.json
with open("{}/plc.xml".format(directory), "w") as outfile:
with open("{}/plc.xml".format(directory), "w", encoding="utf-8") as outfile:
outfile.write(xml_export)

def translate(self):
Expand Down

0 comments on commit b3ff8bc

Please sign in to comment.