← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 696886] Re: [6.0] webkit report sample - UTF-8 error

 

Hello,

I will provide a patch that allows utf8 support in web kit report this
patch will fix many reported bugs.

Regards

Nicolas

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

Title:
  [6.0] webkit report sample - UTF-8 error

Status in OpenObject Addons Modules:
  Confirmed

Bug description:
  Traceback (most recent call last):
  File "/home2/gass/OpenERP/trunk/openobject-server/bin/addons/report_webkit/webkit_report.py", line 285, in create_single_pdf
    **self.parser_instance.localcontext
  File "/usr/lib/python2.6/site-packages/mako/template.py", line 189, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/lib/python2.6/site-packages/mako/runtime.py", line 403, in _render
    _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
  File "/usr/lib/python2.6/site-packages/mako/runtime.py", line 434, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/lib/python2.6/site-packages/mako/runtime.py", line 457, in _exec_template
    callable_(context, *args, **kwargs)
  File "memory:0x68f5050", line 45, in render_body
    <tr><td>${inv.name}</td><td>${formatLang(inv.date_invoice, date=True)|entity}</td><td>&nbsp;</td></tr>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 2: ordinal not in range(128)
 
inv.name = "GKö 6.8 - 8.6"
after changing to "GKoe 6.8 - 8.6" no more error





References