Currently, the most widely used character set and Its Encoding in computers are American Standard Code for information interchange (American Standard Code for information interchange) developed by the National Bureau of Standards (ANSI ), it has been set as an international standard by the International Organization for Standardization (ISO), known as the ISO 646 standard. It is applicable to all Latin characters, including 7-digit ASCII code and 8-digit ASCII code.
Because the number of one-bit binary data can be expressed as (21 =) two states: 0 and 1, while the number of two-bit binary data can be expressed as (22) = four states: 00, 01, 10, 11, and so on. A 7-bit binary number can represent (27 =) 128 States. Each State is uniquely encoded as a 7-bit binary code, corresponds to one character (or control code), which can be arranged into a decimal number ranging from 0 ~ 127. Therefore, the 7-bit ASCII code is encoded using the seven-bit binary number, which can represent 128 characters.
0th ~ 32 and 127th (34 in total) are control characters or communication special characters, such as control characters: LF (line feed), Cr (Press ENTER), FF (page feed), del (delete) BS, Bel, and other special characters for communications: Soh, EOT, and ack;
33rd ~ 126 (94 in total) is a character, of which 48th ~ Number 57 is 0 ~ 9. 10 Arabic numerals; 65 ~ The 90 is 26 uppercase English letters, 97 ~ There are 26 lower-case English letters, and the remaining are some punctuation marks and operator numbers.
Note: In a computer's storage unit, an ascii code value occupies one byte (eight binary digits), and its highest bit (B7) is used as the parity bit. The so-called parity check refers to a method used to check whether an error occurs during code transfer. It is generally divided into two types: Odd checksum and even verification. Odd check rules: correct code must contain an odd number of 1 bytes. If the number is not an odd number, 1 is added to the highest bit B7. Even check rules: correct code: the number of 1 in a byte must be an even number. If the number is not an even number, 1 is added to the highest bit of B7.
Top 128 |
Post-Extension |
0 00 € NUL 1 01 € Soh 2 02 € STX 3 03 € etx 4 04 € EOT 5 05 € Enq 6 06 € ACK 7 07 € bel 8 08 € BS 9 09 € HT 10 0a € lf 11 0b € vt 12 0C € FF 13 0d € cr 14 0e € so 15 0f € Si 16 10 € lupus 17 11 € CS1 18 12 € DC2 19 13 € DC3 20 14 € dc4 21 15 € Nak 22 16 € SYN 23 17 € etb 24 18 € can 25 19 € em 26 1A € SIB 27 1B € ESC 28 1C € FS 29 1D € GS 30 1E rs 31 1f € us 32 20 (Space) 33 21! 34 22" 35 23 # 36 24 $ 37 25% 38 26 & 39 27' 40 28 ( 41 29) 42 2a * 43 2B + 44 2C, 45 2D- 46 2E. 47 2f/ 48 30 0 49 31 1 50 32 2 51 33 3 52 34 4 53 35 5 54 36 6 55 37 7 56 38 8 57 39 9 58 3A: 59 3B; 60 3C < 61 3D = 62 3E> 63 3f? 64 40 @ 65 41 66 42 B 67 43 C 68 44 d 69 45 E 70 46 F 71 47g 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 [ 92 5C/ 93 5D] 94 5E ^ 95 5f _ 96 60' 97 61 98 62 B 99 63 C 100 64 d 101 65 E 102 F 103 67g 104 68 h 105 69 I 106 6a J 107 6B K 108 6C L 109 6D m 110 6e n 111 6f o 112 70 p 113 72 Q 114 72 R 115 73 s 116 74 TB 117 75 U 118 76 V 119 77 W 120 78 X 121 79 y 122 7A Z 123 7b { 124 7C | 125 7d} 126 7E ~ 127 7f 128 80 € |
129 81? 130*82? 131*83? 132*84? 133*85? 134*86? 135*87? 136*88? 137*89? 138 * 8A? 139 * 8B? 140 * 8C? 141 8d? 142 8e? 143 8f? 144 90? 145 91 146 92 147*93 148*94 149*95 150*96 151*97 152*98? 153*99? 154 * 9A? 155 * 9B? 156 * 9C? 157 9d? 158 9e? 159 * 9f? 160 A0 161 A1? 162 A2? 163 A3? 164 A4? 165 A5? 166 A6? 167 A7? 168 A8? 169 A9? 170 AA? 171 AB? 172 AC? 173 ad? 174 AE? 175 af? 176 B0? 177 B1? 178 B2? 179 B3? 180 B4? 181 B5? 182 B6? 183 B7? 184 B8? 185 B9? 186 Ba? 187 BB? 188 BC? 189 BD? 190 be? 191 BF? 192 C0? 193 C1? 194 C2? 195 C3? 196 C4? 197 C5? 198 C6? 199 C7? 200 C8? 201 C9? 202 ca? 203 cb? 204 CC? 205 CD? 206 ce? 207 CF? 208 D0? 209 D1? 210 D2? 211 D3? 212 D4? 213 d5? 214 D6? 215 D7? 216 D8? 217 D9? 218 da? 219 DB? 220 DC? 221 dd? 222 de? 223 DF? 224 E0? 225 E1? 226 E2? 227 E3? 228 E4? 229 E5? 230 E6? 231 E7? 232 E8? 233 E9? 234 ea? 235 EB? 236 ec? 237 ed? 238 ee? 239 Ef? 240 F0? 241 F1? 242 F2? 243 F3? 244 F4? 245 F5? 246 F6? 247 F7? 248 F8? 249 F9? 250 fa? 251 FB? 252 FC? 253 FD? 254 Fe? 255 ff |