How to remove non-ascii characters from XML data

后端 未结 1 501
野趣味
野趣味 2021-01-25 23:00

I have some XML data that is in the following format. My application is supposed to read this using a XMLReader and do some processing to it . However, for that to happen, I nee

1条回答
  •  温柔的废话
    2021-01-25 23:21

    I would investigate as to why these characters are there in the first place. It looks like some encoding problem somewhere between the original XMLs and your file.

    Anyway, when you read a line, just drop all the characters before the .

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