String s1="1231dsdgasd的飒飒大"; Clob c = new SerialClob(s1.toCharArray()); Blob b = new SerialBlob(s1.getBytes("GBK")); String clobString = c.getSubString(1, (int) c.length()); String blobString = new String(b.getBytes(1, (int) b.length()),"GBK"); System.out.println(clobString); System.out.println(blobString);
转载请注明原文地址: https://www.6miu.com/read-1950150.html