What does the message “Invalid byte 2 of a 3-byte UTF-8 sequence” mean?

前端 未结 9 705
半阙折子戏
半阙折子戏 2021-01-04 02:41

I changed a file in Orbeon Forms, and the next time I load the page, I get an error message saying Invalid byte 2 of a 3-byte UTF-8 sequence. How can I solve this p

9条回答
  •  滥情空心
    2021-01-04 03:01

    I'll provide a special coding answer. When you check the xml file and there's nothing wrong, and you're using Java and running Tomcat Server. Your source code may neglect specify the encoding yourself, and thus JVM uses default encoding when read in xml contents as string or something else that repesents string, which in turn refer to Tomcat's default encoding. If encoding of xml and Tomcat are inconsistent, it might also report same error message.

提交回复
热议问题