On Nov 15, 7:57 am, Piru <[EMAIL PROTECTED]> wrote:
> Hi all,
> it's my first post here;)
> I have same issue  -
>
> ...
>
> UnicodeEncodeError
> 'ascii' codec can't encode character u'\u017c' in position 4: ordinal
> not in range(128)
>
> Exception Type:         UnicodeEncodeError
> Exception Value:        'ascii' codec can't encode character u'\u017c' in
> position 4: ordinal not in range(128)
> Exception Location:     /django/utils/encoding.py in force_unicode, line
> 40
> Python Version:         2.4.4
> Unicode error hint
>
> The string that could not be encoded/decoded was: Pokaż swój
> Template error
>
> In template /django/contrib/admin/templates/admin/change_form.html,
> error at line 14
> Caught an exception while rendering: 'ascii' codec can't encode
> character u'\u017c' in position 4: ordinal not in range(128)
>
> ...
>
> I don't know how to handle this thing...

Have you tried to use

def __unicode__(self):

instead of

def __str__(self):

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