HttpUtility.HtmlDe code不解码空间? [英] HttpUtility.HtmlDecode not decoding spaces?

查看:218
本文介绍了HttpUtility.HtmlDe code不解码空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的

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

当我看着测试仍然有20%,而不是一个空间。为什么不解码呢?

When I look into test it still has %20 instead of a space. Why is it not decoding this?

推荐答案

您正在寻找 HttpUtility.UrlDe code()(在System.Web命名空间,我认为)

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

这篇关于HttpUtility.HtmlDe code不解码空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆