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.
精彩评论