简体   繁体   中英

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

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM