ASP URLEncodeMethod


Server 对象参考手册Complete Server Object Reference Manual

The URLEncode method applies URL encoding rules to a specified string.

Syntax

Server.URLEncode(string)

Parameters Description
string Required. The string to be encoded.

Example

<%
response.write(Server.URLEncode("https://www.example.com"))
%>

Output:

https%3A%2F%2Fwww%2Eexample%2Ecom


Server 对象参考手册Complete Server Object Reference Manual Other Extensions