convertToURLEncoded()

The ServiceLib.convertToURLEncoded() system function converts a string into a Universe Resource Locator (URL), which identifies a web page or represents the resource that will be accessed by a REST service. The function is useful if you wish to use a URL that includes spaces or other characters that are not valid in the URL. For example, if your URL includes query parameters and the value of a parameter includes a space, the function returns a valid URL, with a plus sign (+) in place of the space.

Syntax

   ServiceLib.convertToURLEncoded(input STRING in) 
                                  returns(url STRING)
input
The input string
url
The valid URL

Feedback