我怎么能德code字符串? [英] How can I Decode string?

查看:116
本文介绍了我怎么能德code字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有串像&放大器;放大器; AUML; S&放大器;放大器; aring;需要转换,如ASA说 那么如何才能做到这一点?

I have string like "äså" that needs to be converted like "äså" so how can we do that?.

在此先感谢。

推荐答案

您需要仔细反向转义的字符串,利用公郎 StringEscapeUtils

You need to double-unescape the string, using commons-lang StringEscapeUtils:

StringEscapeUtils.unescapeHtml(StringEscapeUtils.unescapeHtml(string))

这篇关于我怎么能德code字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆