Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

 

 

 

Home > Success Center > Kiwi Syslog Server > Kiwi Syslog Server Administrator Guide > Scripting resources > JScript escape characters

JScript escape characters

Table of contents
No headers

Use the following escape characters in JScript scripts. Any escape sequence not included in this table simply codes for the character that follows the backslash in the escape sequence. For example, "\a" is interpreted as "a".

Since the backslash itself represents the start of an escape sequence, you cannot directly type one in 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

The single quote and double quote escape sequences can be used 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 (rarely used)

 

Line feed (newline)

 

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

 

Horizontal tab

\v

Vertical tab (rarely used)

\'

Single quote (')

\"

Double quote (")

\\

Backslash (\)

 

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.

Last modified
12:37, 2 Mar 2017

Tags

Classifications

Public