← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

** Description changed:

  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>
+   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

-- 
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 OpenERP Modules (addons):
  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