Can't update xml with non-latin characters in Oracle

…衆ロ難τιáo~ 提交于 2019-12-13 04:12:19

问题


I have a Java application where I store data in clob and then I use UPDATEXML to update. It works perfectly on latin characters, symbols. But I come from Georgia and it won't update Georgian letters (აბგ). I tried with Russian letters and it worked perfectly.

select = "update datadocumentxml d\n" +
                    "   set d.datadocumentxml = updatexml(xmltype(d.datadocumentxml),'/Comments/@Comment, ?)\n" + 
                    "                                   .getClobVal(),\n" + 

                    " where d.processengineguid = fnguidjava2raw(?)\n" + 
                    "   and d.datadocumentid = 'Comments'";
        ps = conn.prepareStatement(select);

        ps.setClob(1,clob);
        ps.setString(2,processid);
        rs = ps.executeQuery(); 

This is my update statement, when I try to update Georgian letters, I get different errors:

ORA-00603: ORACLE server session terminated by fatal error
java.sql.SQLRecoverableException: No more data to read from socket

I suppose it has something to do with encoding.. any ideas?

来源:https://stackoverflow.com/questions/55515523/cant-update-xml-with-non-latin-characters-in-oracle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!