← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 832706] Re: [6.0] hr_holidays, holidays report per department, accentuated chars in legends

 

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/832706

Title:
  [6.0] hr_holidays, holidays report per department, accentuated chars
  in legends

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Hello,

  When generating the xml code for pdf creation it is concatenating a
  list of string in place of a string for the legend part (date_xml).

  xml='''<?xml version="1.0" encoding="UTF-8" ?>
          <report>
          %s
          %s
          %s
          %s
          </report>
          ''' % (header_xml,months_xml,date_xml, ustr(emp_xml))

  As a result, accentuated chars are displayed wrongly in ascii. For
  exemple "é" is displayed "\xe9".

  Ex
  >>> print "%s %s" % ("1 -> é", [u"2 -> é"],)
  1 -> é [u'2 -> \xa9']

  
  Attached is a proposed patch to concatenate the strings of the string list (date_xml) in one string.
  Plus, it force strings in unicode to ensure date_xml is not a list of mixed unicode / utf-8 strings.
  So the join string method passes.

  Best Regards,
  Yannick

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


References