← Back to team overview

openerp-india team mailing list archive

[Bug 1084942] Re: [7.0] Non-ascii character not appearing in pdf reports

 

** Attachment added: "1.PNG"
   https://bugs.launchpad.net/openobject-addons/+bug/1084942/+attachment/3447706/+files/1.PNG

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1084942

Title:
  [7.0] Non-ascii character not appearing in pdf reports

Status in OpenERP Addons (modules):
  New

Bug description:
  Hi,

  I created a simple sales order in Japanese as shown in attached file 1.
  Viewing it is fine. 
  However, when I try to export to pdf, I get an incomplete pdf. See attached file 2.
  The following error also appears in the log file

  
  2012-11-30 08:20:39,326 7712 ERROR ? openerp.tools.safe_eval: Cannot eval 'formatLang(o.date_order,date = True)'
  Traceback (most recent call last):
    File "/opt/openerp/server/openerp/tools/safe_eval.py", line 242, in safe_eval
      return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/opt/openerp/server/openerp/report/report_sxw.py", line 291, in formatLang
      if not str(value):
    File "/opt/openerp/server/openerp/report/report_sxw.py", line 111, in __str__
      return date.strftime(str(self.lang_obj.date_format))
  UnicodeEncodeError: 'ascii' codec can't encode character u'\u5e74' in position 2: ordinal not in range(128)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1084942/+subscriptions


References