Siebel eScript Language Reference > Siebel eScript Commands > Conversion Methods >
unescape(string) Method
The unescape() method removes escape sequences from a string and replaces them with the relevant characters. Syntax
unescape(string)
|
|
string |
A string literal or string variable from which escape sequences are to be removed |
Returns
A string with Unicode sequences replaced by the equivalent ASCII characters. Usage
The unescape() method is the reverse of the escape() method; it removes escape sequences from a string and replaces them with the relevant characters. Example
The following line of code displays the string in its parameter with the escape sequence replaced by printable characters. Note that %20 is the Unicode representation of the space character. Note also that this example would normally appear on a single line, as strings cannot be broken by a newline. TheApplication().RaiseErrorText(unescape("http://obscushop.com/texis/%20%20showcat.html?catid=%232029 rg=r133"));
The code produces the following result. http://obscushop.com/texis/ showcat.html?catid=#2029 rg=r133
See Also
escape() Method
|