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: