How Siebel eScript Handles Special Characters In a String
A quotation mark is an example of a special character. To use a special character in a string, you must use a specific combination of characters that represent the special character. This combination allows Siebel CRM to understand how you intend it to use the character. For example, a quotation mark that is part of a string or a quotation mark that marks the end of the string.
The following table shows the character combinations that represent special characters. You cannot write code that uses these character combinations in a string that is enclosed by back quotes. For more information, see the following section.
Character Combination | Special Character That the Character Combination Represents |
---|---|
\a |
Audible bell. |
\b |
Backspace. |
\f |
Form feed. |
\n |
Newline. |
\r |
Carriage return. |
\t |
Tab. |
\v |
Vertical tab. |
\’ |
Single quote. |
\” |
Double quote. |
\\ |
Backslash character. |
\0### |
Octal number. For example: |
\x## |
Hex number. For example: |
\0 |
Null character. For example: |
\u#### |
Unicode number. For example: |
Back Quote Usage in a String
To configure Siebel eScript to not translate a character combination that typically represents a special character, you can use the following back quote:
`
If you use the back quote, then Siebel eScript interprets the character combination as a part of the string. For example, the following code lines illustrate different ways to reference a file name:
"c:\\autoexec.bat" // traditional C method
'c:\\autoexec.bat' // traditional C method
`c:\autoexec.bat' // alternative Siebel eScript method
If a string includes a back quote, then you cannot
include a special character that is represented by a back slash followed
by a letter in that string. For example, \n
.
Most versions of JavaScript do not support a string that includes a back quote. If you plan to use your script in some form of JavaScript other than Siebel eScript, then do not use back quotes.