//\u4e2d\u56fd 转码
StringBuffer sb = new StringBuffer(code);
int pos;
while ((pos = sb.indexOf("\\u")) > -1) {
String tmp = sb.substring(pos, pos + 6);
sb.replace(pos, pos + 6, Character.toString((char) Integer
.parseInt(tmp.substring(2), 16)));
}
code = sb.toString();
//转码岳麓书院
StringBuffer sb=new StringBuffer(code);
int pos;
while ((pos=sb.indexOf("&#"))>-1) {
String tmp=sb.substring(pos+2, pos+7);
sb.replace(pos, pos+8, Character.toString((char)Integer.parseInt(tmp,10)));
}
code=sb.toString();
分享到:
相关推荐
好用的unicode转码工具,可将汉字转化为十进制,十六进制的unicode码,亦可将unicode码转化为汉字
unicode 转码器 编码转换 utf8
unicode转码工具,小巧好用,LoveString_160
Unicode转码,汉字与Unicode相互转换页面实现 方便自己使用,不用每次去网上查找!
将字符串中的中文做UNICODE转码,非中文忽略 简单实用 封装好了 直接用即可
可以使用这个小工具轻松帮你解决将汉字转为unicode码
处理emoji表情 js unicode转码解码方法封装类,自己项目中使用的东西 处理emoji表情 js unicode转码解码方法封装类,自己项目中使用的东西
Unicode转码 html 源码 直接可用
js中unicode转码方法详解.docx
易语言 API_Utf8-Ansi-Unicode转码源码
Unicode转码工具,支持将中文转换为Unicode码,也可以将Unicode码转换为中文。
Unicode转码,中文和Unicode互转工具。
swift砖块系列:Swift Log输出工具,可分级别打印log,方便排查日志,添加unicode转码,持续输出中文,支持swift4以上,支持log到本地文件中,添加淘汰算法默认七天淘汰一次log日志文件.zip
两个unicode和中英文互转工具 比较好用,个人在网上好不容易搜索到的比较好用的两款工具,值得收藏。用在Android 破解时很好!...Unicode.exe 转码形式 为\u0065 的形式 转码测试.exe 转码和解码 为0065 的形式
JavaScript脚本UniCode转码函数: [removed] var GB2312UnicodeConverter = { ToUnicode: function (str) { return escape(str).toLocaleLowerCase().replace(/%u/gi, '\\u'); } , ToGB2312: function
NULL 博文链接:https://jsjxqjy.iteye.com/blog/415572