force utf-8 encoding when writing xml
This commit is contained in:
parent
2c0f0ba9c7
commit
407ac1031e
@ -145,7 +145,7 @@ class FotaCheck:
|
|||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno != errno.EEXIST:
|
if e.errno != errno.EEXIST:
|
||||||
raise
|
raise
|
||||||
with open(outfile, "w") as f:
|
with open(outfile, "w", encoding="utf-8") as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
|
|
||||||
def do_check(self, https=True, timeout=10, max_tries=5):
|
def do_check(self, https=True, timeout=10, max_tries=5):
|
||||||
|
Reference in New Issue
Block a user