![](/img/trans.png)
[英]UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 127: unexpected end of data
[英]Caught UnicodeDecodeError while rendering: 'utf8' codec can't decode byte 0xd0 in position 0: unexpected end of data
有一天,當我想輸入django admin時,由於此錯誤,我無法執行此操作。 我不記得我做了什么,並且沒有注意到,當這個錯誤開始出現時..
這里'完全追溯: http : //dpaste.com/418718/
對不起我的英語不好
數據庫字段對於其中的數據而言太小,並且在插入時會默默地將其截斷。 您需要手動修復數據,並使字段更大。
從Mysql表中讀取數據時出現此錯誤。 該數據庫有一些latin1格式的字段。 將它們轉換為utf8格式有所幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.