Encoding error on precessing service description with non ascii chars

Bug #1454419 reported by Mario Benito
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ladon
New
Undecided
Unassigned

Bug Description

Here is the traceback:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/ladon/server/wsgi_application.py", line 483, in __call__
    languages,skin)
  File "/usr/local/lib/python2.7/dist-packages/ladon/server/wsgi_application.py", line 374, in generate_service_html
    return template.render(service_info).encode(charset)
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "<template>", line 26, in top-level template code
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 22: ordinal not in range(128)

After cleaning service description from non ascii chars, everything goes fine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.