Open In App

ASP Server.URLEncode Method

Last Updated : 02 Mar, 2021
Comments
Improve
Suggest changes
Like Article
Like
Report

The ASP Server.URLEncode method is used to apply URL encoding rules to convert to a specified string. Below are given the URLEncode converts characters as follows: 

  • Spaces ( ) are converted to plus signs (+).
  • Non-alphanumeric characters are escaped to their hexadecimal representation.

Syntax: 

Server.URLEncode(string)

Parameter Values: It contains a string value that specifies the string to be encoded. 

Example: 

ASP




<%
%>


Output:  

https%3A%2F%2F2.zoppoz.workers.dev%3A443%2Fhttps%2Fwww%2Egeeksforgeeks%2Eorg


Next Article

Similar Reads