Common ASCII code table

Source: Internet
Author: User
Tags character set control characters
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.
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). If necessary, download the complete 8-bit ASCII two-dimensional table.
ASCII code keyboard
27 ESC 32 SPACE 33! 34"
35 #36 $ 37% 38 &
39 '40 (41) 42 *
43 + 44 '45-46.
47/48 0 49 1 50 2
51 3 52 4 53 5 54 6
55 7 56 8 57 9 58:
59; 60 <61 = 62>
63? 64 @ 65 A 66 B
67 C 68 D 69 E 70 F
71G 72 H 73 I 74 J
75 K 76 L 77 M 78 N
79 O 80 P 81 Q 82 R
83 S 84 T 85 U 86 V
87 W 88X89 Y 90 Z
91 [92 93] 94 ^
95 _ 96 '97 a 98 B
99 c 100 d 101 e 102 f
103g 104 h 105 I 106 j

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.