On Mon, Feb 23, 2009 at 7:01 PM, Alex Gaynor <alex.gay...@gmail.com> wrote:

> On Mon, Feb 23, 2009 at 6:58 PM, arbi <arbin...@gmail.com> wrote:
>
>>
>> Hi all,
>>
>> I got kind of classical error : "UnicodeEncodeError, 'ascii' codec
>> can't encode character u'\xe9' in position 11: ordinal not in range
>> (128)"
>>
>> In fact, it raises when going from view to template, and i think when
>> registering some address in my database with an "é" ("e" with accent).
>> I have a __unicode__ instead of a __str__ also in my models. I also
>> set :
>>
>> DEFAULT_CHARSET = 'utf-8'
>> FILE_CHARSET = 'utf-8'
>> in my settings
>>
>> Where does the pb come from? I didn't find the answer on this forum.
>> thx a lot
>>
>> Arbi
>>
>>
> I'm assuming you're on Django 1.0(or newer, if not please let us know), can
> you paste what exactly your __unicode__  is.
>

Also the full traceback is ever so much more helpful than just the last bit
of the error in diagnosing problems like this.  (Why oh why are people so
reluctant to post tracebacks?)

Karen

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to