Thus, only alphanumerics, the special characters "$-_.+!*'(),", and reserved characters used for their reserved purposes may be used unencoded within a URL.
So, there is no need to encode it.
The page you link to is a classic asp page so uses UrlEncode, so quite an old implementation and not the .NET one.
发布评论
评论(2)
RFC 1738 特别允许在 URL 中使用
*
:因此,无需对其进行编码。
您链接到的页面是一个经典的 asp 页面,因此使用
UrlEncode
,因此这是一种相当古老的实现,而不是 .NET 实现。RFC 1738 specifically allows
*
in the URL:So, there is no need to encode it.
The page you link to is a classic asp page so uses
UrlEncode
, so quite an old implementation and not the .NET one.根据 .NET,
*
是一个“安全”字符,不需要进行编码。这实际上是否正确,我不知道。
According to .NET,
*
is a 'safe' character and needs not to be encoded.Whether this is actually correct or not, I do not know.