'utf8' codec can't decode byte

写了一个新的Django模板文件,运行报错:

UnicodeDecodeError at /bk/ServerStatus.html

'utf8' codec can't decode byte 0xb6 in position 1285: invalid start byte

'utf8' codec can't decode byte_第1张图片


最后仔细查了一下,原来是模板文件的编码,导致报错。html的编码是ANSI的,另存为UTF-8即可。








你可能感兴趣的:('utf8' codec can't decode byte)