ASCII清单、名称、解释

打印机开发中,对ASCII (American Standard Code for Information Interchange)的熟悉有助于相关概念的理解。同时深入理解ASCII的相关背景,也可以了解计算发展的历史。在很久以前的机械打字机时代,CR和LF分别具有不同的作用:LF会将打印纸张上移一行位置,但是保持当前打字的水平位置不变;CR则会将“Carriage”(打字机上的滚动托架)滚回到打印纸张的最左侧,但是保持当前打字的垂直位置不变,即还是在同一行。
名词解释:
CR:Carriage Return,对应ASCII中转义字符\r,表示回车;
LF:Linefeed,对应ASCII中转义字符\n,表示换行;
CRLF:Carriage Return & Linefeed,\r\n,表示回车并换行;
有兴趣的,可以看看下表的详细展示……

十进制二进制十六进制字符/缩写解释
000NUL (NULL)空字符
111SOH (Start Of Headling)标题开始
2102STX (Start Of Text)正文开始
3113ETX (End Of Text)正文结束
41004EOT (End Of Transmission)传输结束
51015ENQ (Enquiry)请求
61106ACK (Acknowledge)回应/响应/收到通知
71117BEL (Bell)响铃
810008BS (Backspace)退格
910019HT (Horizontal Tab)水平制表符
1010100ALF/NL(Line Feed/New Line)换行键
1110110BVT (Vertical Tab)垂直制表符
1211000CFF/NP (Form Feed/New Page)换页键
1311010DCR (Carriage Return)回车键
1411100ESO (Shift Out)不用切换
1511110FSI (Shift In)启用切换
161000010DLE (Data Link Escape)数据链路转义
171000111DC1/XON (Device Control 1/Transmission On)设备控制1/传输开始
181001012DC2 (Device Control 2)设备控制2
191001113DC3/XOFF(Device Control 3/Transmission Off)设备控制3/传输中断
201010014DC4 (Device Control 4)设备控制4
211010115NAK (Negative Acknowledge)无响应/非正常响应/拒绝接收
221011016SYN (Synchronous Idle)同步空闲
231011117ETB (End of Transmission Block)传输块结束/块传输终止
241100018CAN (Cancel)取消
251100119EM (End of Medium)已到介质末端/介质存储已满/介质中断
26110101ASUB (Substitute)替补/替换
27110111BESC (Escape)逃离/取消
28111001CFS (File Separator)文件分割符
29111011DGS (Group Separator)组分隔符/分组符
30111101ERS (Record Separator)记录分离符
31111111FUS (Unit Separator)单元分隔符
3210000020(Space)空格
3310000121!exclamation mark
3410001022double quote
3510001123#number sign
3610010024$dollar sign
3710010125%percent
3810011026&ampersand
3910011127single quote
4010100028(left/opening parenthsis
4110100129)right/opening parenthsis
421010102A*asterisk
431010112B+plus
441011002C,comma
451011012Dminus or dash
461011102E.dot
471011112F/forward slash
48110000300 
49110001311 
50110010322 
51110011333 
52110100344 
53110101355 
54110110366 
55110111377 
56111000388 
57111001399 
581110103A: 
591110113B; 
601111003C< 
611111013D= 
621111103E> 
631111113F? 
64100000040@ 
65100000141A 
66100001042B 
67100001143C 
68100010044D 
69100010145E 
70100011046F 
71100011147G 
72100100048H 
73100100149I 
7410010104AJ 
7510010114BK 
7610011004CL 
7710011014DM 
7810011104EN 
7910011114FO 
80101000050P 
81101000151Q 
82101001052R 
83101001153S 
84101010054T 
85101010155U 
86101011056V 
87101011157W 
88101100058X 
89101100159Y 
9010110105AZ 
9110110115B[left/opening bracket
9210111005C\back slash
9310111015D]right/closing bracket
9410111105E^caret/circumflex
9510111115F_underscore
96110000060` 
97110000161a 
98110001062b 
99110001163c 
100110010064d 
101110010165e 
102110011066f 
103110011167g 
104110100068h 
105110100169i 
10611010106Aj 
10711010116Bk 
10811011006Cl 
10911011016Dm 
11011011106En 
11111011116Fo 
112111000070p 
113111000171q 
114111001072r 
115111001173s 
116111010074t 
117111010175u 
118111011076v 
119111011177w 
120111100078x 
121111100179y 
12211110107Az 
12311110117B{left/opening brace
12411111007C|vertical bar
12511111017D}right/closing brace
12611111107E~tilde
12711111117FDEL (Delete)删除