diff --git a/tcllib.py b/tcllib.py index b6c9a55..7bb6716 100644 --- a/tcllib.py +++ b/tcllib.py @@ -145,7 +145,7 @@ class FotaCheck: except OSError as e: if e.errno != errno.EEXIST: raise - with open(outfile, "w") as f: + with open(outfile, "w", encoding="utf-8") as f: f.write(data) def do_check(self, https=True, timeout=10, max_tries=5):