在用 Django的时候,写了个静态网页,访问时出现 UnicodeDecodeError at / 'utf8' codec can't decode bytes 错误,Google了下原来是编码问题,我用的vim默认的编码是ascii,将文件编码改为utf8重新保存后问题解决。