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) |