From 66c9e218655606c42c1946828365332e7cac4a82 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 9 Jun 2022 13:58:29 -0300 Subject: [PATCH] Fixed problems with 4872a6d - Even when most tools takes utf8 == utf-8 the XML class don't --- kibot/bom/xml_writer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kibot/bom/xml_writer.py b/kibot/bom/xml_writer.py index 2f07c02c..eb6466e5 100644 --- a/kibot/bom/xml_writer.py +++ b/kibot/bom/xml_writer.py @@ -63,8 +63,8 @@ def write_xml(filename, groups, headings, head_names, cfg): ElementTree.SubElement(xml, "group", attrib=attrib) with open(filename, "wb") as output: - out = ElementTree.tostring(xml, encoding="utf8") - reparsed = minidom.parseString(out.decode('utf8')) - output.write(reparsed.toprettyxml(indent="\t", encoding="utf8")) + out = ElementTree.tostring(xml, encoding="utf-8") + reparsed = minidom.parseString(out.decode('utf-8')) + output.write(reparsed.toprettyxml(indent="\t", encoding="utf-8")) return True