Here is the Traceback, need something else?
Traceback: File "/Library/Python/2.5/site-packages/django/core/handlers/base.py" in get_response 86. response = callback(request, *callback_args, **callback_kwargs) File "/Users/brouard/antrive_docs/antrive/../antrive/routes/views.py" in route_result 122. departure_char_list = list(gmaps_geocoder.geocode(departure, exactly_one=False)) File "/Library/Python/2.5/site-packages/geopy-0.93dev_r75-py2.5.egg/ geopy/geocoders_old.py" in geocode 327. url = self.url % urlencode(params) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/urllib.py" in urlencode 1250. v = quote_plus(str(v)) Exception Type: UnicodeEncodeError at /routes/index/result/ Exception Value: 'ascii' codec can't encode character u'\xe9' in position 11: ordinal not in range(128) On 24 fév, 01:08, arbi <arbin...@gmail.com> wrote: > 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 -~----------~----~----~----~------~----~------~--~---