Hi group,
I have a problem with this variable in
django.contrib.admin.templates.admin.change_form.html
{{ original|truncatewords:"18"|escape }}

I'm getting this error:

UnicodeEncodeError at /admin/player/playerprofile/5/
'ascii' codec can't encode characters in position 3-4: ordinal not in range(128)

Unicode error hint
The string that could not be encoded/decoded was: Tomáš

Template error
In template 
/develop/projects/test/django/django/contrib/admin/templates/admin/change_form.html,
error at line 14

When I comment the variable, it works.
{# { original|truncatewords:"18"|escape } #}

Therefore I'm sure that problem is in the variable {{ original }}

Where can I get more information about this {{ original }} variable? I
need to test it. There's no problem with it on my laptop running WinXP
Python25 and latest django trunk. But there's a problem with it on
FreeBSD, Python24 and latest django trunk.

Thanks in advance.
Michal

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to