有什么办法可以解码字符串?

有什么办法可以解码字符串?,第1张

有什么办法可以解码字符串

看一下

StringEscapeUtils
Apache
Commons库中的类。(具体
unescapeHtml
方法)。

import org.apache.commons.lang.StringEscapeUtils;public class Test {    public static void main(String[] args) {        String str = "äså";        System.out.println(StringEscapeUtils.unescapeHtml(str)); // prints äså    }}


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5565657.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-14
下一篇2022-12-14

发表评论

登录后才能评论

评论列表(0条)

    保存