2014年2月7日

摘要: String str = "“!@#¥%……&——+”";//“!@#¥%……&——+” 中文状态下的标点符号,进过html转换了String convStr = StringEscapeUtils.unescapeHtml(str);//apache的jar包:commons-lang-*.jar, 可以将html转换的符号转换过来(网上抄来的)Sysout(convStr);//“!@#¥%……&——+”附上原来博客 阅读全文
posted @ 2014-02-07 16:03 tomcat and jerry 阅读(4938) 评论(0) 推荐(0)

导航