HttpUtility.HtmlDecode不解码空格?(HttpUtility.HtmlDecode not decoding spaces?)
我有这个
string test = HttpUtility.HtmlDecode("http://test.com/Folder1/Folder2/my%20view.aspx");当我考虑测试时,它仍然有%20而不是空格。 为什么它不解码?
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. Why is it not decoding this?
最满意答案
您正在寻找HttpUtility.UrlDecode() (在System.Web命名空间中,我认为)
You are looking for HttpUtility.UrlDecode() (in the System.Web namespace, I think)
更多推荐
发布评论