django中,‘gbk’ codec can’t decode byte 0xa6 in position 9737: illegal multibyte sequence问题

django中,'gbk' codec can't decode byte 0xa6 in position 9737 illegal multibyte sequence问题
跳转到下方路径中
django中,'gbk' codec can't decode byte 0xa6 in position 9737 illegal multibyte sequence问题

大概331行:
with Path(CURRENT_DIR, ‘templates’, ‘technical_500.html’).open() as fh
改成:
as fh
改成:
with Path(CURRENT_DIR, ‘templates’, ‘technical_500.html’).open(encoding=“utf-8”) as fh

相关文章:

  • 2021-10-26
  • 2021-09-21
  • 2022-01-16
  • 2021-10-25
  • 2021-06-14
  • 2021-12-15
  • 2021-04-19
猜你喜欢
  • 2021-07-22
  • 2021-11-21
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
相关资源
相似解决方案