From 014ba7b451c7af829a05cf5512d16a2612ac4c93 Mon Sep 17 00:00:00 2001 From: pierre Date: Tue, 6 Feb 2024 12:34:45 +0100 Subject: [PATCH] ... --- tabcatego.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabcatego.py b/tabcatego.py index 891e4b6..5f4052e 100644 --- a/tabcatego.py +++ b/tabcatego.py @@ -86,7 +86,7 @@ class Categorisation(AnalyseMatrix): cate = {'TOCATE':{}, 'CATE':{}} for val in self.tableau.actives : cate['TOCATE'][val] = self.tableau.actives[val][0] - with open(self.pathout['cate.json'], 'w') as f : + with open(self.pathout['cate.json'], 'w', encoding='utf8') as f : f.write(json.dumps(cate)) self.tableau.save_tableau(self.pathout['analyse.db']) self.dlg.Destroy() -- 2.7.4