简体   繁体   English

渲染时捕获UnicodeDecodeError:'utf8'编解码器无法解码位置0中的字节0xd0:意外的数据结束

[英]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. 有一天,当我想输入django admin时,由于此错误,我无法执行此操作。 I dont remember what i've done, and dont notice, when this error start to appear.. 我不记得我做了什么,并且没有注意到,当这个错误开始出现时..

here' full traceback: http://dpaste.com/418718/ 这里'完全追溯: 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. 从Mysql表中读取数据时出现此错误。 The database had some fields in latin1 format. 该数据库有一些latin1格式的字段。 Converting them to utf8 format helped. 将它们转换为utf8格式有所帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 UnicodeDecodeError:“ utf-8”编解码器无法解码位置127的字节0xd0:数据意外结束 - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 127: unexpected end of data Django管理站点已损坏-渲染时捕获UnicodeDecodeError:“ ascii”编解码器无法解码位置0的字节0xd0 - Django admin-site is broken - Caught UnicodeDecodeError while rendering: 'ascii' codec can't decode byte 0xd0 in position 0 UnicodeDecodeError:“ utf-8”编解码器无法解码位置65535中的字节0xd9:数据意外结束 - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd9 in position 65535: unexpected end of data 'utf8'编解码器无法解码位置0的字节0xd0:无效的连续字节 - 'utf8' codec can't decode byte 0xd0 in position 0: invalid continuation byte UnicodeDecodeError: 'utf8' 编解码器无法解码位置 34 中的字节 0xc3:数据意外结束 - UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 34: unexpected end of data UnicodeDecodeError:'utf8'编解码器无法解码位置0的字节0xc3:意外的数据结束 - UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 0: unexpected end of data Pandas read_excel UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: 无效的继续字节 - Pandas read_excel UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte Robot Framework 命令行错误 | 获取错误“utf8”编解码器无法解码位置 0 中的字节 0xd0:继续字节无效 - Robot Framework Command Line Error | Getting Error 'utf8' codec can't decode byte 0xd0 in position 0: invalid continuation byte Python UnicodeDecodeError:'ascii'编解码器无法解码位置12的字节0xd0:序数不在范围内(128) - Python UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 12: ordinal not in range(128) Python:UnicodeDecodeError:'ascii'编解码器无法解码位置0的字节0xd0:序数不在范围内(128) - Python: UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM