How to fix Invalid byte 1 of 1-byte UTF-8 sequence

后端 未结 13 1380
我寻月下人不归
我寻月下人不归 2020-11-28 13:54

I am trying to fetch the below xml from db using a java method but I am getting an error

Code used to parse the xml

DocumentBuilderFactory dbf = Docu         


        
13条回答
  •  生来不讨喜
    2020-11-28 14:47

    I had the same problem in my JSF application which was having a comment line containing some special characters in the XMHTL page. When I compared the previous version in my eclipse it had a comment,

    //Some �  special characters found
    

    Removed those characters and the page loaded fine. Mostly it is related to XML files, so please compare it with the working version.

提交回复
热议问题