1.在使用python对xml文件进行读取时,提示ValueError: multi-byte encodings are not supported

python读取xml文件报错ValueError: multi-byte encodings are not supported

很多贴子上说把xml的编码格式改为,就可以正常执行了

<?xml version="1.0" encoding="utf-8"?>

  但是事实证明,不成功,解决方法

1.用记事本方式打开xml文件,encoding后面指的就是编码方式

2.把你的xml文件另外为utf-8

python读取xml文件报错ValueError: multi-byte encodings are not supported

在进行读取,文件编码问题解决

相关文章:

  • 2021-05-06
  • 2022-12-23
  • 2021-09-29
  • 2021-12-10
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2021-08-21
  • 2021-10-13
相关资源
相似解决方案