From eec2ac45ffb60cadb242f83c8f69a096b8b72181 Mon Sep 17 00:00:00 2001 From: MikeMoolenaar Date: Tue, 12 Jul 2022 21:15:21 +0200 Subject: [PATCH] Fix export of the overwrite rules thowing error on Windows with japanese charachters --- src/userExceptionManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/userExceptionManager.py b/src/userExceptionManager.py index b36b7d6..1cec38a 100644 --- a/src/userExceptionManager.py +++ b/src/userExceptionManager.py @@ -433,6 +433,6 @@ def getConfig(self): def exportUEList(self, fileName): #allow user to save a copy of their list where they want if not fileName.endswith('.json'): fileName += '.json' - with open(fileName, 'w') as outfile: + with open(fileName, 'w', encoding='utf-8') as outfile: json.dump(self.ueList, outfile, ensure_ascii=False) miInfo('The overwrite rules list has been exported to "' + fileName +'"', level='not') \ No newline at end of file