HttpUtility.HtmlDecode不解码空格?(HttpUtility.HtmlDecode not decoding spaces?)

编程入门 行业动态 更新时间:2024-10-17 23:24:09
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)

更多推荐

本文发布于:2023-08-04 23:10:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1423371.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:空格   HtmlDecode   HttpUtility   decoding   spaces

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!