UnicodeDecodeError: 'gbk' codec

2020-10-11  本文已影响0人  成功在于实践
image.png
 with Path(CURRENT_DIR, 'templates', 'technical_500.html').open() as fh:

修改为:

with Path(CURRENT_DIR, 'templates', 'technical_500.html').open(encoding='utf-8') as fh:

https://blog.csdn.net/qq_37232731/article/details/89684409

上一篇 下一篇

猜你喜欢

热点阅读