Documentation forKiwi Syslog Server NG

JScript escape characters

This documentation is for legacy Kiwi Syslog Server versions 9.8.2 and older.

Use the following escape characters in JScript scripts to turn special characters, such as backslashes, quotation marks, and so on, into string characters when used in script syntax. Excluding the escape sequences included in this table, codes for the character that follows the backslash in the escape sequence. For example, "\a" is interpreted as "a".

Because the backslash represents the start of an escape sequence, you cannot directly enter a sequence into your script.

If you want to include a backslash, you must type two sequential characters (\\). For example: The log file path is C:\\Program Files\\Syslogd\\Logs\\SyslogCatchAll.txt

Use the single quotes and double quote to escape sequences to include quotes in string literals. For example: The caption reads, \"This is a test message from \'Kiwi SyslogGen\'.\"

Escape sequence Meaning
\b Backspace
\f

Form feed

\n

Line feed (new line)

\r

Carriage return. Use with the line feed (\r\n) to format output.

\t

Horizontal tab

\v

Vertical tab

\'

Single quote (')

\"

Double quote (")

\\

Backslash (\)

\n

ASCII character represented by the octal number n. *

\xhh

ASCII character represented by the two-digit hexadecimal number hh.

\uhhhh

Unicode character represented by the four-digit hexadecimal number hhhh.