python manage.py runserver报错
有人遇到过这个错误吗?
有人遇到过这个错误吗?
2017-08-04
???utf8跟utf-8没区别啊,python都能识别的,不信你用命令行
>>> "aaa".decode("utf-8")
u'aaa'
>>> "aaa".decode("utf8")
u'aaa'
我不信题主的问题解决了
另外可以在命令行里试试这个
"测试".decode("utf-8")
如果得到
>>> '测试'.decode("utf8")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\ProgramData\Anaconda2\lib\encodings\utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb2 in position 0: invalid start byte
这样的东西,那么可能我和题主遇到的问题就是一样的呢(。。)
举报