← Back to team overview

openerp-india team mailing list archive

[Bug 1082902] Re: [trunk]date format error when print report in Chinese

 

** Changed in: openobject-server
       Status: Confirmed => In Progress

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

Title:
  [trunk]date format error  when print report in Chinese

Status in OpenERP Server:
  In Progress

Bug description:
  Hello guys,
       When I try to print the report in Chinese I get this error

  2012-11-25 15:05:17,948 26672 ERROR ? openerp.tools.safe_eval: Cannot eval 'formatLang(o.date_order,date = True)'
  Traceback (most recent call last):
    File "/home/joshua/oe/server/openobject-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 "/home/joshua/oe/server/openobject-server/openerp/report/report_sxw.py", line 291, in formatLang
      if not str(value):
    File "/home/joshua/oe/server/openobject-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)

  
  Best Regards
  Joshua

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


References