Creator Help

encodeUrl

This topic describes the syntax and usage of the encodeUrl function in Zoho Creator .

Description

The encodeUrl  function encodes "all space characters" and the "other characters disallowed in a URL string" and returns the encoded string. This function can be used in getURL(), postURL() and openURL() Deluge tasks to encode the required URL and then pass the encoded URL string.

Syntax

encodeUrl(<url-string>

The encodeUrl function syntax has the following arguments.

<url-string> - Required. The URL to be encoded, for example, "http://www.zoho.com"

Return Value

Returns the encoded url. 

Example    

myURL = "http://www.test/zohotest?name=John Doe&country=New Zealand&age=101";
myEncodedURL = encodeUrl(myURL);

Top