[Fix] Bug 333273:Report_sxw corrected(ref : Davide Corio)
authorJay (Open ERP) <jvo@tinyerp.com>
Thu, 26 Feb 2009 07:24:42 +0000 (12:54 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Thu, 26 Feb 2009 07:24:42 +0000 (12:54 +0530)
bzr revid: jvo@tinyerp.com-20090226072442-3ub70vavmfhthtwl

bin/report/report_sxw.py

index 8e0537c..fd8d5e3 100644 (file)
@@ -519,8 +519,8 @@ class rml_parse(object):
         if not self.logo and rml_head.find('company.logo')>=0:
             rml_head = rml_head.replace('<image','<!--image')
             rml_head = rml_head.replace('</image>','</image-->')
-
-        head_dom = xml.dom.minidom.parseString(rml_head)
+        
+        head_dom = xml.dom.minidom.parseString(rml_head.encode('utf-8'))
         #for frame in head_dom.getElementsByTagName('frame'):
         #   frame.parentNode.removeChild(frame)
         node2 = head_dom.documentElement