Server.UrlEn code VS Uri.EscapeDataString [英] Server.UrlEncode vs Uri.EscapeDataString

查看:172
本文介绍了Server.UrlEn code VS Uri.EscapeDataString的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

究竟是两个功能之间的差异。输出似乎只是类似 Uri.EscapeUriString 连接codeS空格 20% Server.UrlEn code 连接codeS它们作为 + 标志。

What exactly is the difference between the two functions. The output seems similar except the Uri.EscapeUriString encodes spaces to %20 and Server.UrlEncode encodes them as a + sign.

和应pferably使用$ P $最后一个问题

And the final question which should be used preferably

推荐答案

下面是关于这个博客帖子: <一href="http://blog.nerdbank.net/2009/05/uriescapedatapath-and.html">http://blog.nerdbank.net/2009/05/uriescapedatapath-and.html

Here is a blog post about this: http://blog.nerdbank.net/2009/05/uriescapedatapath-and.html

希望它能帮助!

这篇关于Server.UrlEn code VS Uri.EscapeDataString的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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