From eaf486c484b702ff8cb70a656504f29574a3fde0 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 2 Jan 2009 21:31:05 +0100 Subject: [PATCH] [FIX] unicode error lp bug: https://launchpad.net/bugs/312726 fixed bzr revid: christophe@cobalt-20090102203105-iq3w587c5ysveqit --- bin/report/report_sxw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/report/report_sxw.py b/bin/report/report_sxw.py index ee1555dbc0d..7dc479caac0 100644 --- a/bin/report/report_sxw.py +++ b/bin/report/report_sxw.py @@ -455,7 +455,7 @@ class rml_parse(object): if len(source_string): translated_string = transl_obj._get_source(self.cr, self.uid, self.name, 'rml', lang, source_string) if translated_string: - piece_list[pn] = piece_list[pn].replace(source_string, translated_string.decode('utf8')) + piece_list[pn] = piece_list[pn].replace(source_string, translated_string) text = ''.join(piece_list) for key in res: newtext = self._eval(key)