[GH-ISSUE #260] Unicode encode error while displaying 'Identities' #245

Closed
opened 2026-02-27 11:10:47 +03:00 by kerem · 0 comments
Owner

Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/260

Originally assigned to: @tonioo on GitHub.

Originally created by Antoine Nguyen on 2012-06-05T15:04:38Z

Using the german translation, displaying the 'Identities' page fails with the following error:

TemplateSyntaxError at /admin/identities/

Caught UnicodeEncodeError while rendering: 'ascii' codec can't encode character u'\xe4' in position 9: ordinal not in range(128)

Request Method:     GET
Request URL:    http://modoboa.state-of-mind.de/admin/identities/
Django Version:     1.3
Exception Type:     TemplateSyntaxError
Exception Value:    

Caught UnicodeEncodeError while rendering: 'ascii' codec can't encode character u'\xe4' in position 9: ordinal not in range(128)

Exception Location:     /usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/utils/encoding.py in force_unicode, line 74
Python Executable:  /usr/bin/python
Python Version:     2.6.6
Python Path:    

['/srv/www/modoboa',
 '/usr/local/bin',
 '/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/gunicorn-0.12.2-py2.6.egg',
 '/usr/lib/python2.6',
 '/usr/lib/python2.6/plat-linux2',
 '/usr/lib/python2.6/lib-tk',
 '/usr/lib/python2.6/lib-old',
 '/usr/lib/python2.6/lib-dynload',
 '/usr/local/lib/python2.6/dist-packages',
 '/usr/lib/python2.6/dist-packages',
 '/usr/lib/pymodules/python2.6',
 '/srv/www',
 '/srv/www/modoboa']

Server time:    Di, 5 Jun 2012 17:02:21 +0200
Template error

In template /srv/www/modoboa/templates/common/table_head.html, error at line 3
Caught UnicodeEncodeError while rendering: 'ascii' codec can't encode character u'\xe4' in position 9: ordinal not in range(128)
1   
2   
3   {% for c in table.columns %}
4   {% if c.sortable %}
5   
6   {% else %}
7   
8   {% endif %}
9   {{ c|safe }}
10  
11  
12  {% endfor %}
13  
Originally created by @tonioo on GitHub (Dec 4, 2013). Original GitHub issue: https://github.com/modoboa/modoboa/issues/260 Originally assigned to: @tonioo on GitHub. **Originally created by Antoine Nguyen on 2012-06-05T15:04:38Z** Using the german translation, displaying the 'Identities' page fails with the following error: <pre> TemplateSyntaxError at /admin/identities/ Caught UnicodeEncodeError while rendering: 'ascii' codec can't encode character u'\xe4' in position 9: ordinal not in range(128) Request Method: GET Request URL: http://modoboa.state-of-mind.de/admin/identities/ Django Version: 1.3 Exception Type: TemplateSyntaxError Exception Value: Caught UnicodeEncodeError while rendering: 'ascii' codec can't encode character u'\xe4' in position 9: ordinal not in range(128) Exception Location: /usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg/django/utils/encoding.py in force_unicode, line 74 Python Executable: /usr/bin/python Python Version: 2.6.6 Python Path: ['/srv/www/modoboa', '/usr/local/bin', '/usr/local/lib/python2.6/dist-packages/Django-1.3-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/South-0.7.3-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/gunicorn-0.12.2-py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/pymodules/python2.6', '/srv/www', '/srv/www/modoboa'] Server time: Di, 5 Jun 2012 17:02:21 +0200 Template error In template /srv/www/modoboa/templates/common/table_head.html, error at line 3 Caught UnicodeEncodeError while rendering: 'ascii' codec can't encode character u'\xe4' in position 9: ordinal not in range(128) 1 <thead> 2 <tr> 3 {% for c in table.columns %} 4 {% if c.sortable %} 5 <th id="{{ c.name }}" class="sortable" width="{{ c.width }}" align="{{ c.align }}"> 6 {% else %} 7 <th id="{{ c.name }}" width="{{ c.width }}"> 8 {% endif %} 9 {{ c|safe }} 10 <span style="float: right"><img style="display: none" alt="" src="{{ STATIC_URL }}pics/transparent.png" /></span> 11 </th> 12 {% endfor %} 13 </tr> </pre>
kerem 2026-02-27 11:10:47 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#245
No description provided.