Hi Dirk,
thanks for your hint, I might use it in future.

I got around my unicode problem by upgrading Python from 2.4 to 2.5
and... it works.
Michal

On 12/10/2007, Dirk Eschler <[EMAIL PROTECTED]> wrote:
>
> On Freitag, 12. Oktober 2007, Michal Konvalinka wrote:
> > 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�
> [...]
>
> Hi Michal,
>
> i got around most of my unicode related problems by setting Pythons default
> encoding to utf-8.
>
> $ cat /usr/lib/python2.4/sitecustomize.py
> import sys
> sys.setdefaultencoding("utf-8")
>
> Best Regards,
> Dirk Eschler
>
> --
> Dirk Eschler <mailto:[EMAIL PROTECTED]>
> http://www.krusader.org
>
> >
>

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