Chapter 4. Reference Tables
ASCII-RTF Character Chart
Table 4-1 shows the main printable characters you can access in RTF, as defined by the ANSI character set (also known as Code Page 1252, which is basically Latin-1 with some characters added between 128 and 159). Accessing Unicode characters is explained in the Character Formatting section of Chapter 1.
Note that while RTF escapes (\'xx) are valid for all characters, the only characters that have to be escaped are these three characters: {, }, and \, plus all the characters over code 127.
Table 4-1. ASCII-RTF character chart
ASCII code | RTF escape | Character | Character name |
|---|---|---|---|
0–31 | Control characters; do not use | ||
32 | \’20 | Space | |
33 | \’21 | ! | Exclamation mark |
34 | \’22 | " | Double quote |
35 | \’23 | # | Number |
36 | \’24 | $ | Dollar |
37 | \’25 | % | Percent |
38 | \’26 | & | Ampersand |
39 | \’27 | ' | Apostrophe |
40 | \’28 | ( | Left parenthesis |
41 | \’29 | ) | Right parenthesis |
42 | \’2a | * | Asterisk |
43 | \’2b | + | Plus sign |
44 | \’2c | , | Comma |
45 | \’2d | - | Hyphen (use \_ for nonbreaking hyphen) |
46 | \’2e | . | Period |
47 | \’2f | / | Slash |
48–57 | \’30–\’39 | 0–9 | Digits 0–9 |
58 | \’3a | : | Colon |
59 | \’3b | ; | Semicolon |
60 | \’3c | < | Less-than sign |
61 | \’3d | = | Equals sign |
62 | \’3e | > | Greater-than sign |
63 | \’3f | ? | Question mark |
64 | \’40 | @ | Commercial at sign |
65 | \’41 | A | |
66 | \’42 | B | |
67 | \’43 | C | |
68 | \’44 | D | |
69 | \’45 | E | |
70 | \’46 | F | |
71 | \’47 | G | |
72 | \’48 | H | |
73 | \’49 | I | |
74 | \’4a | J | |
75 | \’4b | K | |
76 | \’4c | L | |
77 | \’4d | M | |
78 | \’4e | N | |
79 | \’4f | O | |
80 | \’50 | P | |
81 | \’51 | Q | |
82 | \’52 | R | |
83 | \’53 | S | |
84 | \’54 | T | |
85 | \’55 | U | |
86 | \’56 | V | |
87 | \’57 | W | |
88 | \’58 | X | |
89 | \’59 | Y | |
90 | \’5a | Z | |
91 | \’5b | [ | Left square bracket |
92 | \’5c | \ | Backslash |
93 | \’5d | ] | Right square bracket |
94 | \’5e | ^ | Caret |
95 | \’5f | _ | Underscore |
96 | \’60 | ` | Grave accent |
97 | \’61 | a | |
98 | \’62 | b | |
99 | \’63 | c | |
100 | \’64 | d | |
101 | \’65 | e | |
102 | \’66 | f | |
103 | \’67 | g | |
104 | \’68 ... |