urlEncode()
Table of Contents
Overview
The urlEncode() function takes a text as an argument, and returns it after encoding it.
Note: The difference between this function and encodeUrl() function is that this function returns the space character as %20, and encodeUrl() function returns the space character as +.
Return Type
- Text
Syntax
<variable> = zoho.encryption.urlEncode( <string> );
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned value. | TEXT |
<string> | The text to be encoded. Except TEXT, all other data types will return null. | TEXT |
Examples
urlString = zoho.encryption.urlEncode("https://www.zoho.com/creator");
// returns "http%3A%2F%2Fwww.zoho.com%2Fcreator"
// returns "http%3A%2F%2Fwww.zoho.com%2Fcreator"