cbys.net
当前位置:首页 >> jAvA Al32utF8 >>

jAvA Al32utF8

试一试 new String (value.getBytes("iso-8859-1"),"GBK");

String s="123456";String s8=new String(s.getBytes(),"UTF-8");String s16=new String(s8.getBytes("UTF-8"),"UTF-16");String s32=new String(s8.getBytes("UTF-8"),"UTF-32");String s32_2=new String(s16.getBytes("UTF-16"),"UTF-32");

应该是两台数据库之间的字符集不一致导致错误,一般AL32UTF8这个字符集是最大的啦,需要检查下字符集,以及插入表的表结构里的字段类型;

at oracle.sql.CharacterSet.AL32UTF8ToString(CharacterSet.java:1517) at oracle.jdbc.driver.DBConversion.CharBytesToString(DBConversion.java:589) at oracle....

网站首页 | 网站地图
All rights reserved Powered by www.cbys.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com