开发者

Encoding string C#

开发者 https://www.devze.com 2022-12-17 13:27 出处:网络
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\" i

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

精彩评论

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