On 5/8/07, Gerard M <[EMAIL PROTECTED]> wrote: > > Well I did not create the table myself on postgreSQL, I used django > manage.py syncdb and that created my database from my models, and I > have to build it like that because thats the way I access to the > tables too, so I need to find a way to alter them or to set a > collation or to change the "client_encoding" but I have no idea : > ( thanks for your kind help. >
You are trying to insert "unicode" objects into database, before save you model, you need to encode the string Look: >>> u'caminhão' u'caminh\xe3o' >>> u'caminhão'.encode('utf-8') 'caminh\xc3\xa3o' >>> type(u'caminhão') <type 'unicode'> Django doesn't convert unicode to str objects (yet?), so you must to by your self -- Rafael "SDM" Sierra --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---