Igor
Igor

Reputation: 479

Caught UnicodeDecodeError while rendering: 'utf8' codec can't decode byte 0xd0 in position 0: unexpected end of data

Some day, when i wanted to enter django admin, i couldn't do this, because of this error. I dont remember what i've done, and dont notice, when this error start to appear..

here' full traceback: http://dpaste.com/418718/

Sorry for my english

Upvotes: 0

Views: 2401

Answers (2)

tuomassalo
tuomassalo

Reputation: 9101

I got this error when reading data from a Mysql table. The database had some fields in latin1 format. Converting them to utf8 format helped.

Upvotes: 0

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798744

The database field is too small for the data in it, and silently truncated it on insertion. You'll need to repair the data by hand, and make the field larger as well.

Upvotes: 2

Related Questions