The largest ascii code is 127. ASCII code is the American Standard Code for Information Interchange, a computer coding system based on the Latin alphabet, mainly used to display modern English and other Western European languages. The standard ASCII code uses 7 binary bits to represent one character, with a total of 128 codes; 0 to 31 and 127 are control characters or special communication characters (the rest are displayable characters), 32 to 126 are characters, and 65 to 90 are There are 26 uppercase English letters, numbers 97 to 122 are lowercase English letters, and the rest are some punctuation marks, arithmetic symbols, etc.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
The largest ascii code is 127.
Because the computer can only directly accept, store and process binary numbers. Numerical information can be represented by binary numbers, while non-numeric information must be represented by binary coding. Coding refers to using a small number of basic symbols to combine according to certain rules to represent a large amount of complex and diverse information. Generally speaking, which words and symbols need to be represented by binary codes depends on which words and symbols we require the computer to "recognize". In order to store text and symbols in the computer, the text and symbols must be converted into binary numbers according to the prescribed encoding. At present, computers generally use the ASCII code (American Standard Code for Information Interchange) specified by the International Organization for Standardization to represent English letters and symbols.
ASCII (American Standard Code for Information Interchange): The American Standard Code for Information Interchange is a computer coding system based on the Latin alphabet, mainly used to display modern English and other Western European languages.
Standard ASCII code, usually also called 7-bit code, consists of 7-bit binary code, the highest bit is 0, its range is expressed as 00000000~01111111 in binary, and 0~127 in decimal, a total of 128 types (2 to the 7th power), each code represents a basic symbol, that is to say, up to 128 basic symbols can be represented using ASCII codes.
The standard ASCII code is composed of a binary code consisting of a group of 3 digits and a group of 4 digits. A group of 3 digits constitutes 7 columns, and a group of 4 digits constitutes 15 rows. The behavior is the lower 4 digits and the column is the upper 3 digits. According to the column and row positions of letters and numbers, an ASCII code can be fixed. For example: the letter A is located in column 4 and row 1, that is, the ASCII code is 01000001BCD. Similarly, given a 7-bit ASCII, a corresponding number, letter or symbol can be immediately found.
The expression of ascii code
0~31 and 127 (33 in total) are control characters or special communication characters (the rest are optional Display characters)
Such as control characters: LF (line feed), CR (carriage return), FF (page feed), DEL (delete), BS (backspace), BEL (ring), etc.;
Special characters for communication: SOH (head of text), EOT (end of text), ACK (confirmation), etc.;
ASCII values of 8, 9, 10 and 13 are converted to backspace and tab respectively. , line feed and carriage return characters. They do not have a specific graphic display, but will have different effects on text display depending on different applications [1] .
32~126 (95 in total) are characters (32 is a space), of which 48~57 are ten Arabic numerals from 0 to 9.
65~90 are 26 uppercase English letters, 97~122 are 26 lowercase English letters, and the rest are some punctuation marks, arithmetic symbols, etc.
Also note that in standard ASCII, its highest bit (b7) is used as a parity bit. The so-called parity check refers to a method used to check whether errors occur during code transmission. It is generally divided into two types: odd check and even check. Odd parity rules: the number of 1's in a byte of the correct code must be an odd number. If it is not an odd number, add 1 to the highest bit b7; even parity rules: the number of 1's in a byte of the correct code must be an even number. , if it is not an even number, add 1 to the highest bit b7.
The ASCII code table is as follows:
Bin
(binary)
|
Oct
(octal)
|
Dec
(decimal)
|
Hex
(Hex)
|
Abbreviation/Character |
Explanation |
|||||
0000 0000 |
00 |
0 |
0x00 |
NUL(null) |
##null character | |||||
0000 0001 |
01 |
1 |
0x01 |
SOH(start of headline) |
Start of headline |
|||||
0000 0010 |
02 |
2 |
0x02 |
STX (start of text) |
Start of text |
|||||
0000 0011 |
03 |
3 |
##0x03 | ETX (end of text) | End of text | |||||
04 | 4 | ##0x04 | EOT (end of transmission) | Transmission End | ||||||
05 | 5 | 0x05 | ENQ (enquiry) | Request | ||||||
##06 |
6 |
0x06 |
ACK (acknowledge) |
Receive notification |
0000 0111 | |||||
07 |
7 |
0x07 |
BEL (bell) |
Bell |
0000 1000 | |||||
010 |
8 |
##0x08 | BS (backspace) | Backspace | ##0000 1001 |
|||||
9 | 0x09 | HT (horizontal tab) | Horizontal tab | ##0000 1010 | ||||||
10 | 0x0A | LF (NL line feed, new line) | Newline key | ##0000 1011 | 013 | |||||
11 |
0x0B |
VT (vertical tab) |
Vertical tab character |
|||||||
0000 1100 |
##014 | 12 | ##0x0C##FF (NP form feed, new page) | Page key | ||||||
015 |
|
0x0D | CR (carriage return) | Enter key | ||||||
016 | 14 | 0x0E | SO (shift out) | No need to switch | ||||||
017 | 15 | 0x0F | SI (shift in) | Enable switching | ||||||
020 | 16 | ##0x10 |
DLE (data link escape) |
Data link escape |
##0001 0001 | |||||
021 | 17 | 0x11 | DC1 (device control 1) | Device Control 1 | 0001 0010 | |||||
022 | 18 | 0x12 | ##DC2 (device control 2)Device Control 2 | ##0001 0011 | ##023||||||
19 |
0x13 |
DC3 (device control 3) |
Device control 3 |
0001 0100 | ##024 | |||||
20 | 0x14 | DC4 (device control 4) | Device control 4 | 0001 0101 | 025 | |||||
0x15 | NAK (negative acknowledge) | Reject to accept | 0001 0110 |
026 |
||||||
0x16 |
##SYN (synchronous idle) | synchronous idle | ||||||||
0001 0111 | 027 | ##230x17 | ETB (end of trans. block) | End of Transmission Block | ||||||
030 | 24 | 0x18 | Cancel | |||||||
031 | 25 | 0x19 | EM (end of medium) | MEDIA END | ||||||
032 | 26 | ##0x1A |
##SUB (substitute) | replace | 0001 1011 | |||||
033 | 27 | 0x1B | ESC (escape) | Escape (overflow) | 0001 1100 | |||||
034 | 28 | 0x1C | FS (file separator) | File separator |
|
|||||
035 | 29 | ##0x1DGroup separator | 0001 1110 |
|||||||
30 | 0x1E | ##RS (record separator ) | Record delimiter | 0001 1111 | ||||||
31 | 0x1F | US (unit separator) | Unit separator | ##0010 0000 | 040 | |||||
32 |
0x20 |
(space) |
space | 0010 0001 | 041 |
33 |
##0x21 | ! | Exclamation mark | |
0010 0010 | ##04234 | 0x22 | " | Double quotes | ||||||
043 | 35 | |||||||||
044 | 36 | 0x24 | $ | Dollar sign | ||||||
045 | 37 | ##0x25 |
##% | Percent sign | ##0010 0110 |
|||||
38 | 0x26 | & | 和 | 0010 0111 | ||||||
39 | 0x27 | ' | Closing single quote | ##0010 1000 | 050 | |||||
40 |
0x28 |
( |
##open bracket | 0010 1001 | 051 | |||||
41 | 0x29 | ) | Closing bracket | ##0010 1010 |
052 |
|||||
0x2A | * | ## Asterisk | 0010 1011 | 053 | ##43||||||
0x2B |
plus sign |
##0010 1100 | 054 | 44 |
0x2C |
##, | comma | |||
0010 1101 | ##05545 | 0x2D | - | ##Minus sign/dash | ||||||
056 | 46 | 0x2E | . | ##Period |
##0010 1111 | |||||
057 | 47 | 0x2F | / | slash | ##0011 0000 |
|||||
48 | 0x30 | 0 | Characters 0 | 0011 0001 |
||||||
49 | 0x31 | 1 | Character 1 | ##0011 0010 | ||||||
50 | ##0x32 |
2 |
##Character 2 | 0011 0011 | 063 | |||||
51 | 0x33 | 3 | Character 3 | 0011 0100 | 064 | |||||
52 | 0x34 | 4 | ##Characters 40011 0101 |
065 |
||||||
0x35 | 5 | Character 5 | ##0011 0110 | 54 | ||||||
0x36 |
6 |
Characters 6 |
0011 0111 | 067 | 55 | |||||
0x37 |
7 |
Characters 7 |
||||||||
##0011 1000 | 070 | 56 | 0x38 | 8 | Characters 8 | |||||
071 | 57 | 0x39 | 9 | Characters 9 | ||||||
072 | 58 | 0x3A | : | Colon | ||||||
073 | 59 | ##0x3B |
; |
##Semicolon | 0011 1100 | |||||
074 | 60 | 0x3C | < | Less than | 0011 1101 | |||||
075 | 61 | 0x3D | = | EQUAL SIGN | 0011 1110 | |||||
076 | ##620x3E | > | is greater than | 0011 1111 |
||||||
63 | 0x3F | ##? | Question mark | 0100 0000 | ||||||
64 | 0x40 | @ | Email symbol | 0100 0001 | ||||||
65 | 0x41 | A | Capital letter A | 0100 0010 | ||||||
66 | ##0x42 |
B
|
Capital B |
|||||||
0100 0011 |
0103 | 67 |
0x43 |
##C | uppercase letter C | |||||
0100 0100 | 0104 | 68 | 0x44 | D | Capital D | |||||
0100 0101 | 0105 | 69 | ##0x45E | ##Capital E | ##0100 0110 | |||||
0106 |
70 |
0x46 |
##F | uppercase Letters F | ##0100 0111 |
|||||
71 | 0x47 | G | ##Capital G | 0100 1000 | ||||||
72 | 0x48 | H | Capital letter H | ##0100 1001 | 0111 | |||||
73 |
0x49 |
I |
Capital I |
##01001010 | 0112 | |||||
74 | 0x4A | J | Capital letter J | 0100 1011 | 0113 | |||||
75 | 0x4B | K | uppercase K | 0100 1100 | 0114 | |||||
76 | ##0x4CL | ##Capital L | ##0100 1101 | 0115 | 77 | |||||
##0x4D | M | Capital letter M |
||||||||
0100 1110 |
0116 |
78 |
0x4E |
##N | uppercase letter N | |||||
0100 1111 | ##011779 | 0x4F | O | ##Capital letter O | ||||||
0120 | 80 | 0x50 | P | Capital P | ##0101 0001 | |||||
0121 |
81 |
0x51 |
Q |
Capital Q |
0101 0010 | |||||
0122 |
82 |
0x52 |
R |
uppercase R |
0101 0011 | |||||
0123 |
##83 | 0x53 | S | upper case S | 0101 0100 | |||||
0124 | 84 | ##0x54T | Capital letter T | ##0101 0101 | ||||||
85 | 0x55 | U | Capital U | ##0101 0110 | 0126 | |||||
86
|
0x56 |
V |
upper case V |
0101 0111 | 0127 | |||||
87 |
0x57
|
W |
upper case W |
0101 1000 | 0130 | |||||
##88 | ##0x58X | Capital X |
||||||||
0101 1001 |
0131 | 89 |
0x59 |
Y |
uppercase letter Y |
|||||
0101 1010 |
0132 |
90 | 0x5A |
Z |
Capital letter Z |
|||||
0101 1011
|
0133 |
91 |
##0x5B | [ | Open square brackets | |||||
0134 | 92 | 0x5C | \ | |||||||
0135 | 93 | 0x5D | ] | Closed square bracket | ||||||
0136 | 94 | 0x5E | ^ | Caret | ||||||
##0137 |
95 |
#0x5F | _ | underscore | ##0110 0000 |
|||||
96 | 0x60 | ` | Open single quotation mark | ##0110 0001 | ||||||
97 | 0x61 | a | lower case a | 0110 0010 | ||||||
##98 |
0x62 |
b |
##lower case b | 0110 0011 | 0143 | |||||
##0x63 | c | lowercase letter c | ||||||||
0110 0100 |
0144 |
100 |
0x64 |
d |
lower case d |
|||||
0110 0101 |
##0145 | 101 | ##0x65e | lower case e | ||||||
##0146 |
102 |
0x66 |
f |
Lower case f |
##0110 0111 | |||||
0147 | 103 | 0x67 | g | ##lower case g0110 1000 |
||||||
104 | 0x68 | h | ##Lowercase letter h | ##0110 1001 | ||||||
##105 | ##0x69i | lowercase i | 0110 1010 |
0152 | ||||||
0x6A | ##j | ##lowercase j |
0110 1011 | 0153 | 107 | |||||
0x6B |
k |
lower case k |
0110 1100 | ##0154 | 108 | |||||
l | lower case l | ##0110 1101 | 0155 | 109 | ||||||
m | Lower case m | ##0110 1110 | ##0156 | 110 | 0x6E | |||||
n | lower case n | |||||||||
0110 1111 |
0157 |
111 |
0x6F |
o |
lowercase o |
|||||
0111 0000 |
0160 |
##112 | ##0x70p | lower case p | ||||||
|
113 | 0x71 | q | Lower case q | ##0111 0010 | |||||
0162 |
114
|
0x72 |
r |
lower case r |
0111 0011 | |||||
0163 |
115 |
0x73
|
s |
lower case s |
0111 0100 | |||||
##0164 | 116 | ##0x74t | lower case t | ##0111 0101 | ||||||
117 | 0x75 | u |
|
##0111 0110 | ##0166 | |||||
118 | 0x76 | v | lower case v | 0111 0111 | 0167 | |||||
119 | 0x77 | w | lowercase w | 0111 1000 | 0170 | |||||
120 | 0x78 | x | ##lower case x0111 1001 |
0171 |
||||||
0x79 | y | lower case Letter y | ||||||||
0111 1010 |
0172 |
122 |
0x7A |
z |
lowercase z |
|||||
0111 1011 |
##0173 | 123 | ##0x7B{ | Open brackets | ||||||
0174 | 124 | 0x7C | | | vertical line | ##0111 1101 | |||||
##0175 | 125 | 0x7D | } | Closing curly brace | 0111 1110 | |||||
0176 | 126 | 0x7E | ~ | tilde | ##0111 1111 |
|||||
127 | 0x7F | DEL (delete) | Delete |
For more related knowledge, please visit FAQ | Column!
The above is the detailed content of What is the largest ascii code?. For more information, please follow other related articles on the PHP Chinese website!