encodeUrl()

encodeUrl()

Overview

The encodeUrl() function takes urlExpression as an argument and encodes "all space characters" and 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 URL params and then pass the encoded URL string.

Note: The difference between this function and urlEncode() function is that this function returns the space character as +, and urlEncode() function returns the space character as %20.

Return Type

  • Text

Syntax

<variable> = encodeUrl( <urlExpression> );
ParameterDescriptionData type
<variable>Variable which will contain the returned encoded url.TEXT
<string>The expression which will be encoded.TEXT

Examples

myURL = "http://www.zoho.com/zohotest?name=John&country=Australia&age=101";
​myEncodedURL = encodeUrl(myURL);

//returns http%3A%2F%2Fwww.zoho.com%2Fzohotest%3Fname%3DJohn%26country%3DAustralia%26age%3D101

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com