String str = " 20013; 25991;";
public synchronized static String converUnicodeToCN(String str){
String tmp = str.replaceAll("",",").replaceAll(";","");
String [] s2 = tmp.split(",");
String s1 = "";
for (int i=1;i<s2.length;i++){
int a = Integer.parseInt(s2[i],10);
s1 = s1+(char)a;
}
return s1;
}
打印"中文"
備記
public synchronized static String converUnicodeToCN(String str){
String tmp = str.replaceAll("",",").replaceAll(";","");
String [] s2 = tmp.split(",");
String s1 = "";
for (int i=1;i<s2.length;i++){
int a = Integer.parseInt(s2[i],10);
s1 = s1+(char)a;
}
return s1;
}
打印"中文"
備記