Where Am I ?
星期二, 1月 25, 2011
Caught UnicodeDecodeError while rendering ... unexpected code byte
Django的樣板裡頭打上中文的時候,出現了如標題的錯誤
Caught UnicodeDecodeError while rendering ... unexpected code byte
找了各種原因,原來是Vim儲存時沒用utf-8編碼去存。
只要在vim下打
:set fenc=utf-8
再去編輯儲存就可以了。
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言