How does Python xml parser detect encoding (utf-8 vs utf-16)?

前端 未结 0 721
时光说笑
时光说笑 2020-12-15 14:11

The Python XML Parser can parse byte strings of various encodings (Even if there is no encoding specified in the XML header):

from xml.etree import ElementTre         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题