invalid byte 2 of 2-byte UTF-8 sequence

前端 未结 7 1876
萌比男神i
萌比男神i 2020-12-14 16:18

I am trying to parse an XML file with but ran into an error message invalid byte 2 of 2-byte UTF-8 sequence

相关标签:
7条回答
  • 2020-12-14 17:12

    I had the same problem. My problem was that I created a new XML file with jdom and the FileWriter(xmlFile). The FileWriter was not able to create a UTF-8 File. Instead using the FileOutputStream(xmlFile) solved it.

    0 讨论(0)
提交回复
热议问题