Including special characters in the message text
The \ (backslash) can be used to insert special characters into the message text.
These special characters are as follows:
- \n
- Inserts a new-line character.
- \t
- Inserts a horizontal tab character.
- \v
- Inserts a vertical tab character.
- \b
- Inserts a backspace character.
- \r
- Inserts a carriage-return character.
- \f
- Inserts a form-feed character.
- \\
- Inserts a backslash (\) character.
- \ddd
- Inserts a single-byte character associated with the octal value represented by the valid octal
digits ddd. Note: One, two, or three octal digits can be specified. However, you must include a leading zero if the characters following the octal digits are also valid octal digits. For example, the octal value for $ (dollar sign) is 44. To display $5.00, use \0445.00, and not \445.00, or the 5 will be parsed as part of the octal value.
- \dd
- Inserts a single-byte character associated with the hexadecimal value represented by the two valid hexadecimal digits dd. You must include a leading zero to avoid parsing errors (see the note about \ddd).
- \dddd
- Inserts a double-byte character associated with the hexadecimal value represented by the four valid hexadecimal digits dddd. You must include a leading zero to avoid parsing errors (see the note about \ddd).