Sunday, June 12, 2011

Could not decode to UTF-8 column 'cpostal'

Hi,

I just converted a mssql database to sqlite3.
I used the folloing text_factory

con.text_factory = lambda x: x.decode('iso-8859-1').encode('utf-8')

that just converts from latin1 to utf-8
where i browse the tables in python shell it seems everything is fine
and well converted
but when in admin, I just get the error
"could not decode utf-8 column"

the columns django complains has the following data '4760 Vila Nova de
Famalic\xc3\xa3o '

Any help appreciated.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate