日期:2014-05-20 浏览次数:21543 次
String a = "INSERT INTO CommArea VALUES (1, 'country', '中国', 0, '000000');";
String b = "?INSERT INTO CommArea VALUES (1, 'country', '中国', 0, '000000');";
System.out.println("a: " + a.length() + "\t\tb: " + b.length());
for (int i = 0; i < a.length(); i++) {
if (a.charAt(i) != b.charAt(i)) {
System.out.println(i + "\t" + a.charAt(i) + "[" + (int) a.charAt(i) + "] != " + b.charAt(i) + "["
+ (int) b.charAt(i) + "]");
}
}
------解决方案--------------------
编码问题么?我这里提示了个Some characters cannot be mapped using GBK character encoding..
试试重新手动输入。。 这个问题奇葩