ASCII code Daquan

Source: Internet
Author: User
Tags control characters file separator

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), BEL (zhenling); Communication special characters: Soh (Text header), EOT (Text tail), Ack (confirmation), etc;
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 refersCodeA method used to check whether an error occurs during transmission. Generally, there are two methods: 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.
For ease of query, the following table lists the ASCII code tables: Common ASCII code comparison tables.
128th ~ 255 is an extended character (not commonly used)

 

ASCII non-printable control characters
The numbers 0-31 in the ASCII table are assigned control characters to control peripheral devices such as printers. For example, 12 represents the form feed/New Page function. This command indicates that the printer jumps to the beginning of the next page.
Decimal Hexadecimal Character Decimal Hexadecimal Character
0 00 Null 16 10 Data Link Conversion
1 01 Header start 17 11 Device Control 1
2 02 Start of Text 18 12 Device Control 2
3 03 Text ended 19 13 Device Control 3
4 04 Transfer completed 20 14 Device Control 4
5 05 Query 21 15 Reverse Validation
6 06 Confirm 22 16 Synchronization idle
7 07 Zhenling 23 17 Transfer Block ended
8 08 Backspace 24 18 Cancel
9 09 Horizontal Tab 25 19 Media ends
10 0a Line feed/New Line 26 1a Replace
11 0b Vertical Tab 27 1B Conversion
12 0c Form feed/New Page 28 1c File Separator
13 0d Enter 29 1D Group Separator
14 0e Remove 30 1e Record Separator
15 0f Move in 31 1f Unit Separator
ASCII print characters
The number 32-126 is assigned to characters that can be found on the keyboard. It appears when you view or print the document. The number 127 represents the DELETE command.

Decimal Hexadecimal Character Decimal Hexadecimal Character
32 20 Space 80 50 P
33 21 ! 81 51 Q
34 22 " 82 52 R
35 23 # 83 53 S
36 24 $ 84 54 T
37 25 % 85 55 U
38 26 & 86 56 V
39 27 ' 87 57 W
40 28 ( 88 58 X
41 29 ) 89 59 Y
42 2a * 90 5A Z
43 2b + 91 5b [
44 2c , 92 5C \
45 2d - 93 5D ]
46 2e . 94 5E ^
47 2f / 95 5f _
48 30 0 96 60 `
49 31 1 97 61 A
50 32 2 98 62 B
51 33 3 99 63 C
52 34 4 100 64 D
53 35 5 101 65 E
54 36 6 102 66 F
55 37 7 103 67 G
56 38 8 104 68 H
57 39 9 105 69 I
58 3A : 106 6a J
59 3b ; 107 6b K
60 3c < 108 6c L
61 3D = 109 6d M
62 3E > 110 6e N
63 3f ? 111 6f O
64 40 @ 112 70 P
65 41 A 113 71 Q
66 42 B 114 72 R
67 43 C 115 73 S
68 44 D 116 74 T
69 45 E 117 75 U
70 46 F 118 76 V
71 47 G 119 77 W
72 48 H 120 78 X
73 49 I 121 79 Y
74 4A J 122 7A Z
75 4b K 123 7b {
76 4C L 124 7c |
77 4d M 125 7D }
78 4e N 126 7E ~
79 4f O 127 7f Del
Expanded ASCII print characters
The expanded ASCII characters meet the requirements for more characters. The expanded ASCII contains the existing 128 characters in ASCII (numbers 0-32 are displayed in the middle), and an additional 128 characters are added, totaling 256. Even with these more characters, many languages still contain symbols that cannot be compressed to 256 characters. Therefore, there are some ASCII variants that include regional characters and symbols.
For example, many software Program The ASCII table (also known as ISO 8859-1) is used in North America, Western Europe, Australia, and Africa.
Decimal Hexadecimal Character Decimal Hexadecimal Character
128 80 C. 192 C0 Bytes
129 81 Ü 193 C1 Bytes
130 82 É 194 C2 Bytes
131 83 Â 195 C3 Bytes
132 84 Ä 196 C4 -
133 85 À 197 C5 Bytes
134 86 Bytes 198 C6 Bytes
135 87 C. 199 C7 Bytes
136 88 Bytes 200 C8 Bytes
137 89 Bytes 201 C9 Bytes
138 8A ? 202 CA Bytes
139 8b Bytes 203 CB Bytes
140 8C Bytes 204 CC Bytes
141 8d Bytes 205 CD Bytes
142 8E Ä 206 CE Bytes
143 8f Bytes 207 Cf Bytes
144 90 É 208 D0 Bytes
145 91 Bytes 209 D1 Bytes
146 92 Bytes 210 D2 Bytes
147 93 Bytes 211 D3 Bytes
148 94 Ö 212 D4 Bytes
149 95 Bytes 213 D5 Bytes
150 96 Bytes 214 D6 Bytes
151 97 Bytes 215 D7 Bytes
152 98 Bytes 216 D8 Bytes
153 99 Ö 217 D9 Bytes
154 9A Ü 218 Da Bytes
155 9B Bytes 219 DB Bytes
156 9C £. 220 DC Bytes
157 9d ? /TD> 221 Dd Bytes
158 9e ? /TD> 222 De ? /TD>
159 9f ? /TD> 223 DF
160 A0 Á 224 E0 α
161 A1 Í 225 E1 Bytes
162 A2 Ó 226 E2 Gamma
163 A3 Úo 227 E3 π
164 A4 N 228 E4 Σ
165 A5 N 229 E5 σ
166 A6 Bytes 230 E6 Μ
167 A7 ° 231 E7 Tau
168 A8 Bytes ¿ 232 E8 Phi
169 A9

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.