On Thu, Aug 30, Anderson Santos wrote: > > I am still having this issue. > I have in my settings DEFAULT_CHARSET = "utf-8", and I created a new > database with UTF-8 encoding (using PGAdmin). > So I go to admin page, click on my model and then the "add" button, I > include a special char (á, ç, etc) and I get a Unicode error on both, > Linux and Windows. > > The error message on Linux is: > > 'utf8' codec can't decode bytes in position 1-2: unexpected end of > data > > > The error message on Windows is: > > 'utf8' codec can't decode bytes in position 1-3: invalid data > > > The problem is, it DOES saves the data and displays correctly on the > listing admin page for the model. The error only occurs when I try to > edit, on display. If the record don't have any special char, it works > correctly. > > > Both occurs on force_unicode procedure > > > When I try to add from manage.py shell onlinux (with or without > special chars), it raises an error "SET client_encoding to 'UNICODE'" > in django/db/backends/postgresql/base.py > > I really have no clue why it's happening. I just updated from svn so I > have the latest django. > > Any help will be really appreciate
Can you please post the model class, including (if present) __unicode__() and __str__() functions? Michael -- noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg - Tel +49-911-9352-0 - Fax +49-911-9352-100 http://www.noris.de - The IT-Outsourcing Company Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk - Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---