[FIX] Bug 364835 : corrected non-enlgish character problem for parsing report(ref:Ferdinand)

bzr revid: jvo@tinyerp.com-20090501070828-rz7h97sk1a6vnqol
This commit is contained in:
Jay (Open ERP) 2009-05-01 12:38:28 +05:30
parent 51a6a796b7
commit a1072bed43
1 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,8 @@ class document(object):
if not isinstance(datas[atr['value']], (str, unicode)):
txt = self.doc.createTextNode(str(datas[atr['value']]))
else:
txt = self.doc.createTextNode(datas[atr['value']].decode('utf-8'))
# txt = self.doc.createTextNode(datas[atr['value']].decode('utf-8'))
txt = self.doc.createTextNode(datas[atr['value']])
el.appendChild(txt)
else:
el_cld = node.firstChild