From 9e8df786515853fbcdf0d50a036e427760b7f619 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Fri, 7 Apr 2017 12:34:17 +0200 Subject: [PATCH] pb accent --- Ihm/I_MCLIST.py | 2 +- Ihm/I_OBJECT.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Ihm/I_MCLIST.py b/Ihm/I_MCLIST.py index cc5bb3c2..4765d8fc 100644 --- a/Ihm/I_MCLIST.py +++ b/Ihm/I_MCLIST.py @@ -262,7 +262,7 @@ class MCList: en tenant compte de la langue """ try : - return self.data[0].get_fr().decode('latin-1') + return self.data[0].get_fr() except: return '' diff --git a/Ihm/I_OBJECT.py b/Ihm/I_OBJECT.py index 41e68469..48c444c2 100644 --- a/Ihm/I_OBJECT.py +++ b/Ihm/I_OBJECT.py @@ -134,12 +134,12 @@ class OBJECT: """ try: #if 1 : - c=getattr(self.definition,self.jdc.lang).decode('latin-1','ignore') + c=getattr(self.definition,self.jdc.lang) return c except: #else: try : - c=getattr(self.definition,"fr").decode('latin-1','ignore') + c=getattr(self.definition,"fr") return c except : return '' -- 2.39.2