(unicode error) ‘utf-8‘ codec can‘t decode byte 0xd3 in position 0: invalid continuati byte

SyntaxError: (unicode error) ‘utf-8’ codec can’t decode byte 0xd3 in position 0: invalid continuation byte

在Windows使用Django 时出现以上报错的解决办法:
在开头加上 # - * -coding:GBK - * -

#-*-coding:GBK -*- 

猜你喜欢

转载自blog.csdn.net/weixin_40687614/article/details/107924635