开发者

HttpUtility.HtmlDecode not decoding spaces?

I have this

 string test =  HttpUtility.HtmlDecode("http://test.com/Folder1/Folder2/my%20view.aspx");

When I look into test it still has %20 instead of a space. Wh开发者_运维知识库y is it not decoding this?


You are looking for HttpUtility.UrlDecode() (in the System.Web namespace, I think)


HttpUtility.HtmlDecode not decoding "%20", use HttpUtility.UrlDecode to decode "%20"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜