Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个网络服务,它传递了一些编码材料。
Javascript:
var x = encodeURIComponent(data);
但是当X被发送到服务器时,我无法对其进行解码。HttpUtility.HtmlDecode() 我正在查看名称空间 HTTP 和 URI,但在尝试时无法找到我想要的确切内容,但Uri.EscapeUriString()无济于事。
X
HttpUtility.HtmlDecode()
Uri.EscapeUriString()
这是怎么做到的?
尝试HttpUtility.UrlDecode()代替HttpUtility.HtmlDecode().
HttpUtility.UrlDecode()