开发者

Encoding string C#

I get a page response from a web and it is having strings like "Ll开发者_高级运维uís Quílez". But i get it as "Lluís Quílez". So how do i change it back to "Lluís Quílez" in C#?

Thank you.


The string is HTML encoded. Use the HtmlDecode method:

s = System.Web.HttpUtility.HtmlDecode(s);


Check out this outstanding article which might help you ;)

and an answer to a related question here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜