ASP URLEncode 方法

Server 对象参考手册

定义和用法

URLEncode 方法把 URL 编码规则应用到指定的字符串。

Syntax

Server.URLEncode(string)
参数描述
string必需。要编码的字符串。

实例

<%
response.write(Server.URLEncode("http://www.sou-xun.com"))
%>

输出

http%3A%2F%2Fwww%2E(www.sou-xun.com)%2Ecom%2Ecn

Server 对象参考手册