Complete asc ii code table and introduction

Source: Internet
Author: User
Note: This article is transferred from "http://asc.18dao.com /"
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 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.

The following table lists ASCII code tables for ease of query:

128th ~ 255 is an extended character (not commonly used)

Dec HX Oct Char Dec HX Oct Char Dec HX Oct Char Dec HX Oct Char
0 0 000 Nul (Null) 32 20 040 Space 64 40 100 @ 96 60 140 '
1 1 001 Soh (Start of heading) 33 21 041 ! 65 41 101 A 97 61 141 A
2 2 002 STX (Start of text) 34 22 042 " 66 42 102 B 98 62 142 B
3 3 003 Etx (End of text) 35 23 043 # 67 43 103 C 99 63 143 C
4 4 004 EOT (End of transmission) 36 24 044 $ 68 44 104 D 100 64 144 D
5 5 005 Enq (Enquiry) 37 25 045 % 69 45 105 E 101 65 145 E
6 6 006 ACK (Acknowledge) 38 26 046 & 70 46 106 F 102 66 146 F
7 7 007 Bel (Bell) 39 27 047 ' 71 47 107 G 103 67 147 G
8 8 010 BS (Backspace) 40 28 050 ( 72 48 110 H 104 68 150 H
9 9 011 Tab (Horizontal tab) 41 29 051 ) 73 49 111 I 105 69 151 I
10 A 012 Lf (NL line feed, new_line) 42 2a 052 * 74 4A 112 J 106 6a 152 J
11 B 013 Vt (Vertical tab) 43 2b 053 + 75 4b 113 K 107 6b 153 K
12 C 014 FF (NP form feed, new page) 44 2c 054 , 76 4C 114 L 108 6c 154 L
13 D 015 Cr (Carriage return) 45 2d 055 - 77 4d 115 M 109 6d 155 M
14 E 016 So (Shift out) 46 2e 056 . 78 4e 116 N 110 6e 156 N
15 F 017 Si (Shift in) 47 2f 057 / 79 4f 117 O 111 6f 157 O
16 10 020 DLE (Data Link escape) 48 30 060 0 80 50 120 P 112 70 160 P
17 11 021 DC1 (Device Control 1) 49 31 061 1 81 51 121 Q 113 71 161 Q
18 12 022 DC2 (Device Control 2) 50 32 062 2 82 52 122 R 114 72 162 R
19 13 023 DC3 (Device Control 3) 51 33 063 3 83 53 123 S 115 73 163 S
20 14 024 Dc4 (Device Control 4) 52 34 064 4 84 54 124 T 116 74 164 T
21 15 025 Nak (Negative acknowledge) 53 35 065 5 85 55 125 U 117 75 165 U
22 16 026 SYN (Synchronous idle) 54 36 066 6 86 56 126 V 118 76 166 V
23 17 027 Etb (End of Trans. Block) 55 37 067 7 87 57 127 W 119 77 167 W
24 18 030 Can (Cancel) 56 38 070 8 88 58 130 X 120 78 170 X
25 19 031 Em (End of medium) 57 39 071 9 89 59 131 Y 121 79 171 Y
26 1a 032 Sub (Substitute) 58 3A 072 : 90 5A 132 Z 122 7A 172 Z
27 1B 033 ESC (Escape) 59 3b 073 ; 91 5b 133 [ 123 7b 173 {
28 1c 034 FS (File separator) 60 3c 074 < 92 5C 134 \ 124 7c 174
29 1D 035 GS (Group separator) 61 3D 075 = 93 5D 135 ] 125 7D 175 }
30 1e 036 RS (Record separator) 62 3E 076 > 94 5E 136 ^ 126 7E 176 ~
31 1f 037 Us (Unit separator) 63 3f 077 ? 95 5f 137 _ 127 7f 177 Del
Extended Character Set)


ISO Latin-1 character set (encoding: 160-255)

Encoding Character Encoding Character Encoding Character Encoding Character
160 172 Bytes 184 Bytes 196 Ä
161 Bytes ¡ 173 185 Bytes 197 Bytes
162 Bytes 174 186 ° 198 Bytes
163 £. 175 Bytes 187 » 199 C.
164 Bytes 176 188 Bytes 200 ?
165 ¥ 177 ± 189 Bytes 201 É
166 Bytes 178 2. 190 Bytes 202 Bytes
167 " 179 Bytes 191 Bytes ¿ 203 Bytes
168 180 ' 192 À 204 Bytes
169 181 Μ 193 Á 205 Í
170 Bytes 182 Bytes ¶ 194 Â 206 Bytes
171 « 183 · 195 Bytes 207 Bytes
Encoding Character Encoding Character Encoding Character Encoding Character
208 Bytes 220 Ü 232 ? 244 Bytes
209 N 221 Bytes 233 É 245 Bytes
210 Bytes 222 Bytes 234 Bytes 246 Ö
211 Ó 223 Bytes 235 Bytes 247 Bytes
212 Bytes 224 À 236 Bytes 248 Ø
213 Bytes 225 Á 237 Í 249 Bytes
214 Ö 226 Â 238 Bytes 250 Úo
215 227 Bytes 239 Bytes 251 Bytes
216 Ø 228 Ä 240 Bytes 252 Ü
217 Bytes 229 Bytes 241 N 253 Bytes
218 Úo 230 Bytes 242 Bytes 254 Bytes
219 Bytes 231 C. 243 Ó 255 Bytes

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.