All About JAVA An invalid XML character (Unicode: 0xdd65) was found in the comment 錯誤
在這兩天進行一個早期系統遷移工作,從Solaris的jes遷移到rhel的weblogic,程式遷移過來後,一個頁面的文字編輯器無法初始化,後臺報了An invalid XML character (Unicode: 0xdd65) was found in the comment.這個錯誤。在編輯器初始化前需要處理一個XML檔案,程式碼片段如下:
<?xml version="1.0" encoding="GBK"?>
<Edit_Button>
<!--相關的按鈕檔案-->
<bcode name="SpellCheck">
<btitle>拼寫檢查</btitle>
<bimage>spellcheck.gif</bimage>
<bhtml></bhtml>
<btype>0</btype>
<bevent>spellCheck()</bevent>
<bclass>Btn</bclass>
<border>0</border>
<ballowselect>0</ballowselect>
</bcode>
<bcode name="TBSep">
<btitle>分隔線</btitle>
<bimage></bimage>
<bhtml></bhtml>
<btype>2</btype>
<bevent></bevent>
<bclass>TBSep</bclass>
<border>1</border>
<ballowselect>1</ballowselect>
</bcode>
...
這個檔案是GBK編碼,最後將此檔案編碼格式轉為UTF-8,並將頭部的XML宣告中的GBK也該為UTF-8,程式可以正常執行。
相關文章
- An invalid XML character (Unicode: 0x18) was foundXMLUnicode
- Error parsing XML: An invalid XML character (Unicode:0x1f) was foundErrorXMLUnicode
- An invalid XML character (Unicode: 0x10) was found in the value of attributeXMLUnicode
- An invalid XML character (Unicode: 0x4) was found in the element content of theXMLUnicode
- Java - XML字元支援報錯An invalid XML characterJavaXML字元
- 微信公眾號 報 An invalid XML character (Unicode: 0x1a) was found in the CDATA sectioXMLUnicode
- MyBatis 錯誤:Invalid bound statement (not found)MyBatis
- Python 錯誤 SyntaxError: invalid character in identifierPythonErrorIDE
- 對XML 進行 parse 時的Invalid Unicode character (0x0) 分析XMLUnicode
- Invalid bound statement (not found)錯誤解決
- Dom4j 讀 xml 時,遇到 xml 無效字元,報錯:An invalid XML characterXML字元
- SAXParseException An invalid XML character 問題的解決ExceptionXML
- IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokensExceptionHTTP
- vue中報錯:[vuex] module namespace not found in mapActions(): comment/Vuenamespace
- mybatis 報錯: Invalid bound statement (not found)MyBatis
- All About PythonPython
- What is the N prefix in MSSQL all about?SQL
- 解決:錯誤 1 error MSB8031: Building an MFC project for a non-Unicode character set is deprecatedErrorUIProjectUnicode
- MyBatis繫結錯誤:org.apache.ibatis.binding.BindingException:Invalid bound statement (not found)MyBatisApacheException
- std::sort 錯誤"Expression : invalid operator <"Express
- 執行hadoop fs -ls時出現錯誤RuntimeException: core-site.xml not foundHadoopExceptionXML
- Jsp Unescaped xml character報錯的解決辦法JSXML
- SAP S4 HANA - What is it all about?
- 小程式錯誤:Component is not found in path
- jsp錯誤: "javax.servlet.http.HttpServlet" was not found on the Java Build PathJSJavaServletHTTPUI
- maven The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path錯誤MavenJavaServletHTTPUI
- 已解決:Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 問題
- 執行mysqlbinlog出現Found invalid event in binary log錯MySql
- DBCA建庫出現CHMOD NOT FOUND錯誤
- To Banq, about XML tranformation, Web Portable managementXMLORMWeb
- Checkpoint log:invalid bitmap page錯誤修復
- ORA-600(kkoipt:invalid join method)錯誤
- MybatisPlus自帶方法報錯BindingException: Invalid bound statement (not found)MyBatisException
- mybatis3:Invalid bound statement (not found)MyBatisS3
- java.sql.SQLException: ORA-00911: invalid character 解決方法(轉)JavaSQLException
- MySQL Invalid gbk character string 1300MySql
- Eclipse 啟動專案錯誤:class not foundEclipse
- 解決ntp的錯誤 no server suitable for synchronization foundServerUI