“中文” 这种格式是htmlencode对汉字进行的处理。和汉字互转的方法如下:
public static void main(String[] args) {
String s = "中文转字符的HTML实体表示形式";
System.out.println(StringEscapeUtils.escapeHtml(s));
String u = "中文转字符的HTML实体表示形式";
System.out.println(StringEscapeUtils.unescapeHtml(u));
}