UnicodeDecodeError: 'gbk' codec can't decode byte 0xbf in position 2: illegal multibyte sequence

 

 

在某种情况下忽略字符错误

file = open(path, encoding='gb18030', errors='ignore')

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2021-05-24
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2021-06-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2022-01-21
  • 2022-01-17
  • 2021-06-11
  • 2021-10-23
相关资源
相似解决方案