Thx for so quick answer :) I am on Django 1.0 do I need 1.0.2? my unicode is : def __unicode__(self): return self.address
And my "address" is a String. Arbi On 24 fév, 01:01, 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. > > Alex > > -- > "I disapprove of what you say, but I will defend to the death your right to > say it." --Voltaire > "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---