Choose where you’d like to start

urlEncode()

Note: This function is available in all Zoho services except Zoho Creator.

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> );
ParameterDescriptionData 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"

Get Started Now

Execute