Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Conversion or Casting Methods > escape() MethodThe escape() method receives a string and replaces special characters with escape sequences. SyntaxReturnsA string with special characters replaced by Unicode sequences. UsageThe escape() method receives a string and replaces special characters with escape sequences, so that the string may be used with a URL. The escape sequences are Unicode values. For characters in the standard ASCII set (values 0 through 127 decimal), these are the hexadecimal ASCII codes of the characters preceded by percent signs. Uppercase and lowercase letters, numbers, and the special symbols @ * + _ . / remain in the string. Other characters are replaced by their respective Unicode sequences. ExampleThe following code provides an example of what occurs when a string is encoded. Note that the @ and * characters have not been replaced. Results in the following string: var encodeStr = escape("@#$*%!"); Results in the following string: See Also |
Siebel eScript Language Reference |