Unicode 转为中文
public void testDecoder() throws UnsupportedEncodingException {String string = "胡斐,没有版权";String str = string.replaceAll("&#", ",").replaceAll(";", "");String[] s2 = str.split(",");StringBuffer s1 = new StringBuffer();for (int i = 1; i < s2.length; i++) {int a = Integer.parseInt(s2[i]);s1.append((char) a);}System.out.println(s1);}
?