O'Reilly    
 Published on O'Reilly (http://oreilly.com/)
 See this if you're having trouble printing code examples


Unicode Escape Sequences for Latin 1 Characters: Appendix - ActionScript 3.0 Cookbook

by Joey Lott, Darron Schall, Keith Peters

This excerpt is from ActionScript 3.0 Cookbook. Well before Ajax and Windows Presentation Foundation, Macromedia Flash provided the first method for building "rich" web pages. Now, Adobe is making Flash a full-fledged development environment, and learning ActionScript 3.0 is key. That's a challenge for even the most experienced Flash developer. This Cookbook offers more than 300 solutions to solve a wide range of coding dilemmas, so you can learn to work with the new version right away.

buy button

Table A-1 lists the characters in the Latin 1 character repertoire, with Unicode equivalents in the range of U+0000 to U+00FF (that is, C0 Controls, Basic Latin, C1 Controls, and Latin 1 Supplemental). It is reproduced from Appendix B of ActionScript for Flash MX: The Definitive Guide with the permission of the author, Colin Moock.

The table’s first column (labeled Dec) lists each character’s code point in decimal (the standard ASCII or Latin 1 value), the second column provides the Unicode escape sequence for the character, and the third column describes or shows the character itself.

Table 1.1. ISO 8859-1 (Latin 1) characters and Unicode mappings

Dec Unicode Description   Dec Unicode Description
0 \\u0000 [null]   15 \\u000f [shift in]
1 \\u0001 [start of heading]   16 \\u0010 [data link escape]
2 \\u0002 [start of text]   17 \\u0011 [device control one]
3 \\u0003 [end of text]   18 \\u0012 [device control two]
4 \\u0004 [end of transmission]   19 \\u0013 [device control three]
5 \\u0005 [enquiry]   20 \\u0014 [device control four]
6 \\u0006 [acknowledge]   21 \\u0015 [negative acknowledge]
7 \\u0007 [bell]   22 \\u0016 [synchronous idle]
8 \\u0008 [backspace]   23 \\u0017 [end of transmission block]
9 \\u0009 [horizontal tabulation]   24 \\u0018 [cancel]
10 \\u000a [line feed]   25 \\u0019 [end of medium]
11 \\u000b [vertical tabulation]   26 \\u001a [substitute]
12 \\u000c [form feed]   27 \\u001b [escape]
13 \\u000d [carriage feed]   28 \\u001c [file separator]
14 \\u000e [shift out]   29 \\u001d [group separator]
30 \\u001e [record separator]   66 \\u0042 B
31 \\u001f [unit separator]   67 \\u0043 C
32 \\u0020 [space]   68 \\u0044 D
33 \\u0021 !   69 \\u0045 E
34 \\u0022 ” (straight quotes)   70 \\u0046 F
35 \\u0023 #   71 \\u0047 G
36 \\u0024 $   72 \\u0048 H
37 \\u0025 %   73 \\u0049 I
38 \\u0026 &   74 \\u004a J
39 \\u0027 ’ (straight apostrophe)   75 \\u004b K
40 \\u0028 (   76 \\u004c L
41 \\u0029 )   77 \\u004d M
42 \\u002a *   78 \\u004e N
43 \\u002b +   79 \\u004f O
44 \\u002c , (comma)   80 \\u0050 P
45 \\u002d – (minus)   81 \\u0051 Q
46 \\u002e . (period)   82 \\u0052 R
47 \\u002f /   83 \\u0053 S
48 \\u0030 0   84 \\u0054 T
49 \\u0031 1   85 \\u0055 U
50 \\u0032 2   86 \\u0056 V
51 \\u0033 3   87 \\u0057 W
52 \\u0034 4   88 \\u0058 X
53 \\u0035 5   89 \\u0059 Y
54 \\u0036 6   90 \\u005a Z
55 \\u0037 7   91 \\u005b [
56 \\u0038 8   92 \\u005c \\
57 \\u0039 9   93 \\u005d ]
58 \\u003a :   94 \\u005e ^
59 \\u003b ;   95 \\u005f _ (underscore)
60 \\u003c <   96 \\u0060 \Q (accent grave)
61 \\u003d =   97 \\u0061 a
62 \\u003e >   98 \\u0062 b
63 \\u003f ?   99 \\u0063 c
64 \\u0040 @   100 \\u0064 d
65 \\u0041 A   101 \\u0065 e
102 \\u0066 f   138 \\u008a control chr
103 \\u0067 g   139 \\u008b control chr
104 \\u0068 h   140 \\u008c control chr
105 \\u0069 i   141 \\u008d control chr
106 \\u006a j   142 \\u008e control chr
107 \\u006b k   143 \\u008f control chr
108 \\u006c l   144 \\u0090 control chr
109 \\u006d m   145 \\u0091 control chr
110 \\u006e n   146 \\u0092 control chr
111 \\u006f o   147 \\u0093 control chr
112 \\u0070 p   148 \\u0094 control chr
113 \\u0071 q   149 \\u0095 control chr
114 \\u0072 r   150 \\u0096 control chr
115 \\u0073 s   151 \\u0097 control chr
116 \\u0074 t   152 \\u0098 control chr
117 \\u0075 u   153 \\u0099 control chr
118 \\u0076 v   154 \\u009a control chr
119 \\u0077 w   155 \\u009b control chr
120 \\u0078 x   156 \\u009c control chr
121 \\u0079 y   157 \\u009d control chr
122 \\u007a z   158 \\u009e control chr
123 \\u007b {   159 \\u009f control chr
124 \\u007c |   160 \\u00a0 [no break space]
125 \\u007d }   161 \\u00a1 \xc1
126 \\u007e ~   162 \\u00a2 ¢
127 \\u007f [delete]   163 \\u00a3 £
128 \\u0080 control chr   164 \\u00a4 \xdb
129 \\u0081 control chr   165 \\u00a5 ¥
130 \\u0082 control chr   166 \\u00a6  
131 \\u0083 control chr   167 \\u00a7 \xa4
132 \\u0084 control chr   168 \\u00a8
133 \\u0085 control chr   169 \\u00a9 ©
134 \\u0086 control chr   170 \\u00aa \xbb
135 \\u0087 control chr   171 \\u00ab \xc7
136 \\u0088 control chr   172 \\u00ac \xc2
137 \\u0089 control chr   173 \\u00ad -
174 \\u00ae ®   210 \\u00d2 \xf1
175 \\u00af \xf8   211 \\u00d3 \xee
176 \\u00b0 °   212 \\u00d4 \xef
177 \\u00b1 ±   213 \\u00d5 \xcd
178 \\u00b2 2   214 \\u00d6 ...
179 \\u00b3 3   215 \\u00d7 ×
180 \\u00b4   216 \\u00d8 \xaf
181 \\u00b5 m   217 \\u00d9 \xf4
182 \\u00b6   218 \\u00da \xf2
183 \\u00b7 ·   210 \\u00d2 \xf1
184 \\u00b8 \xfc   219 \\u00db \xf3
185 \\u00b9 1   220 \\u00dc \x86
186 \\u00ba \xbc   221 \\u00dd  
187 \\u00bb \xc8   222 \\u00de  
188 \\u00bc 1/4   223 \\u00df \xa7
189 \\u00bd 1/2   224 \\u00e0 \x88
190 \\u00be 3/4   225 \\u00e1 \x87
191 \\u00bf \xc0   226 \\u00e2 \x89
192 \\u00c0     227 \\u00e3 \x8b
193 \\u00c1 \xe7   228 \\u00e4 \x8a
194 \\u00c2 \xe5   229 \\u00e5 \x8c
195 \\u00c3 \xcc   230 \\u00e6 \xbe
196 \\u00c4 \x80   231 \\u00e7 \x8d
197 \\u00c5 \x81   232 \\u00e8 è
198 \\u00c6   233 \\u00e9 é
199 \\u00c7 \x82   234 \\u00ea \x90
200 \\u00c8 \xe9   235 \\u00eb \x91
201 \\u00c9 \x83   236 \\u00ec \x93
202 \\u00ca \xe6   237 \\u00ed \x92
203 \\u00cb \xe8   238 \\u00ee \x94
204 \\u00cc \xed   239 \\u00ef ï
205 \\u00cd \xea   240 \\u00f0  
206 \\u00ce \xeb   241 \\u00f1 \x96
207 \\u00cf \xec   242 \\u00f2 \x98
208 \\u00d0     243 \\u00f3 \x97
209 \\u00d1 \x84   244 \\u00f4 \x99
245 \\u00f5 \x9b   250 \\u00fa \x9c
246 \\u00f6 \x9a   251 \\u00fb \x9e
247 \\u00f7 ÷   252 \\u00fc \x9f
248 \\u00f8     253 \\u00fd  
249 \\u00f9 \x9d   254 \\u00fe  

If you enjoyed this excerpt, buy a copy of ActionScript 3.0 Cookbook.

Copyright © 2009 O'Reilly Media, Inc.