Siebel eScript Language Reference > Siebel eScript Commands > The String Object >

Escape Sequences for Characters in Siebel eScript

Some characters, such as a quotation mark, have special meaning to the Siebel eScript interpreter and must be indicated with special character combinations when used in strings. This indication allows the Siebel eScript interpreter to distinguish between, for example, a quotation mark that is part of a string and a quotation mark that indicates the end of the string. The following table lists the characters indicated by escape sequences.

Escape Sequence


Audible bell




Form feed




Carriage return




Vertical tab


Single quote


Double quote


Backslash character


Octal number (example: '\033' is the escape character)


Hex number (example: '\x1B' is the escape character)


Null character (example: '\0' is the null character)


Unicode number (example: '\u001B' is the escape character)

These escape sequences cannot be used within strings enclosed by back quotes, which are explained in Back-Quote Strings in Siebel eScript.

Back-Quote Strings in Siebel eScript

Siebel eScript provides the back quote "`", (also known as the back-tick or grave accent), as an alternative quote character to indicate that escape sequences are not to be translated; that is, the escape characters are part of a string. Special characters represented by a backslash followed by a letter, such as \n, cannot be used in back-quote strings.

For example, the following lines show different ways to describe a single file name:

"c:\\autoexec.bat" // traditional C method
'c:\\autoexec.bat' // traditional C method
`c:\autoexec.bat'   // alternative Siebel eScript method

Back-quote strings are not supported in most versions of JavaScript. Therefore, if you plan to port your script to some other JavaScript interpreter, do not use them.

Siebel eScript Language Reference