From 5285a30342b8caff0cd69eaf7a7c1ab28e11bed9 Mon Sep 17 00:00:00 2001 From: pierre Date: Sat, 7 Sep 2024 17:35:56 +0200 Subject: [PATCH] utf8 path file --- iramuteq.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iramuteq.py b/iramuteq.py index 6e77bcd..7ca049f 100755 --- a/iramuteq.py +++ b/iramuteq.py @@ -731,7 +731,7 @@ class IraFrame(wx.Frame): BestRPath = FindRPathNix() if BestRPath: self.PathPath.set('PATHS', 'rpath', BestRPath) - with open(ConfigPath['path'], 'w') as f : + with open(ConfigPath['path'], 'w', encoding='utf8') as f : self.PathPath.write(f) else: BestRPath = True @@ -802,7 +802,7 @@ class IraFrame(wx.Frame): # evenement attaché au bouton de fermeture des fenetres ou onglets ? def OnClose(self, event): print('onclose Iramuteq') - with open(self.ConfigPath['path'], 'w') as f : + with open(self.ConfigPath['path'], 'w', encoding='utf8') as f : self.PathPath.write(f) self._mgr.UnInit() del self._mgr -- 2.7.4