1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00

Ensure UTF-8 encoding used throughout zenmap

This commit is contained in:
dmiller
2024-04-26 17:25:40 +00:00
parent 480803e24a
commit c840e236cb
12 changed files with 48 additions and 36 deletions

View File

@@ -87,7 +87,7 @@ class UmitConfigParser(ConfigParser):
if self.filenames:
log.debug("saving to %s" % self.filenames)
try:
with open(self.filenames, 'w') as fp:
with open(self.filenames, 'w', encoding="utf-8") as fp:
self.write(fp)
except Exception as e:
self.failed = e