“奖励《绳技——舞者》的创作生产单位”导入数据库后变成了“奖励《绳技――舞者》的创作生产单位” (中间的“——”不同),汉字正确,这个问题如何解决?写数据库时的处理语句: InputStream xmlStream = xmlFile.getInputStream();
byte[] buffer = new byte[xmlFile.getFileSize()];
xmlStream.read(buffer);
sTest = new String(buffer, "GBK");
byte[] buffer = new byte[xmlFile.getFileSize()];
xmlStream.read(buffer);
sTest = new String(buffer, "GBK");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货