From: pierre Date: Sat, 7 Sep 2024 15:35:56 +0000 (+0200) Subject: utf8 path file X-Git-Url: http://iramuteq.org/git?a=commitdiff_plain;h=5285a30342b8caff0cd69eaf7a7c1ab28e11bed9;p=iramuteq utf8 path file --- 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