UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 9737: illegal multibyte sequence

UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 9737: illegal multibyte sequence_第1张图片
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

你可能感兴趣的:(UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 9737: illegal multibyte sequence)