/**
* Unicode 码转成汉字
*
* @author peidw
*
*/
public class CodeFormTest {
public static void main(String args[]) throws UnsupportedEncodingException {
String a = "开发平台SDK";
Pattern p = Pattern.compile("&#.*?;");
Matcher m = p.matcher(a);
boolean rs = m.find();
while (rs) {
String aa = m.group();
String str = aa.replaceAll("&#", ",").replaceAll(";", "");
String[] s2 = str.split(",");
String s1 = "";
for (int i = 1; i < s2.length; i++) {
int v = Integer.parseInt(s2[i], 10);
s1 = s1 + (char) v;
System.out.print(s1);
}
rs = m.find();
}
}
}