ASCII码表

             ASCII码表
 

    信息在计算机上是用二进制表示的,这种表示法让人理解就很困难。因此计算机上都配有输入和输出设备,这些设备的主要目的就是,以一种人类可阅读的形式将信息在这些设备上显示出来供人阅读理解。为保证人类和设备,设备和计算机之间能进行正确的信息交换,人们编制的统一的信息交换代码,这就是ASCII码表,它的全称是“美国信息交换标准代码”。

 


八进制 十六进制 十进制 字符 八进制 十六进制 十进制 字符
00 00 0 nul 100 40 64 @
01 01 1 soh 101 41 65 A
02 02 2 stx 102 42 66 B
03 03 3 etx 103 43 67 C
04 04 4 eot 104 44 68 D
05 05 5 enq 105 45 69 E
06 06 6 ack 106 46 70 F
07 07 7 bel 107 47 71 G
10 08 8 bs 110 48 72 H
11 09 9 ht 111 49 73 I
12 0a 10 nl 112 4a 74 J
13 0b 11 vt 113 4b 75 K
14 0c 12 ff 114 4c 76 L
15 0d 13 cr 115 4d 77 M
16 0e 14 so 116 4e 78 N
17 0f 15 si 117 4f 79 O
20 10 16 dle 120 50 80 P
21 11 17 dc1 121 51 81 Q
22 12 18 dc2 122 52 82 R
23 13 19 dc3 123 53 83 S
24 14 20 dc4 124 54 84 T
25 15 21 nak 125 55 85 U
26 16 22 syn 126 56 86 V
27 17 23 etb 127 57 87 W
30 18 24 can 130 58 88 X
31 19 25 em 131 59 89 Y
32 1a 26 sub 132 5a 90 Z
33 1b 27 esc 133 5b 91 [
34 1c 28 fs 134 5c 92 \
35 1d 29 gs 135 5d 93 ]
36 1e 30 re 136 5e 94 ^
37 1f 31 us 137 5f 95 _
40 20 32 sp 140 60 96 '
41 21 33 ! 141 61 97 a
42 22 34 " 142 62 98 b
43 23 35 # 143 63 99 c
44 24 36 $ 144 64 100 d
45 25 37 % 145 65 101 e
46 26 38 & 146 66 102 f
47 27 39 ` 147 67 103 g
50 28 40 ( 150 68 104 h
51 29 41 ) 151 69 105 i
52 2a 42 * 152 6a 106 j
53 2b 43 + 153 6b 107 k
54 2c 44 , 154 6c 108 l
55 2d 45 - 155 6d 109 m
56 2e 46 . 156 6e 110 n
57 2f 47 / 157 6f 111 o
60 30 48 0 160 70 112 p
61 31 49 1 161 71 113 q
62 32 50 2 162 72 114 r
63 33 51 3 163 73 115 s
64 34 52 4 164 74 116 t
65 35 53 5 165 75 117 u
66 36 54 6 166 76 118 v
67 37 55 7 167 77 119 w
70 38 56 8 170 78 120 x
71 39 57 9 171 79 121 y
72 3a 58 : 172 7a 122 z
73 3b 59 ; 173 7b 123 {
74 3c 60 < 174 7c 124 |
75 3d 61 = 175 7d 125 }
76 3e 62 > 176 7e 126 ~
77 3f 63 ? 177 7f 127 del

 





更加简洁的如下:


ASCII

控制字符

ASCII

控制字符

ASCII

控制字符

ASCII

控制字符

0

NUT

32

(space)

64

@

96

1

SOH

33

65

A

97

a

2

STX

34

66

B

98

b

3

ETX

35

#

67

C

99

c

4

EOT

36

$

68

D

100

d

5

ENQ

37

%

69

E

101

e

6

ACK

38

&

70

F

102

f

7

BEL

39

,

71

G

103

g

8

BS

40

(

72

H

104

h

9

HT

41

)

73

I

105

i

10

LF

42

*

74

J

106

j

11

VT

43

+

75

K

107

k

12

FF

44

,

76

L

108

l

13

CR

45

-

77

M

109

m

14

SO

46

.

78

N

110

n

15

SI

47

/

79

O

111

o

16

DLE

48

0

80

P

112

p

17

DCI

49

1

81

Q

113

q

18

DC2

50

2

82

R

114

r

19

DC3

51

3

83

X

115

s

20

DC4

52

4

84

T

116

t

21

NAK

53

5

85

U

117

u

22

SYN

54

6

86

V

118

v

23

TB

55

7

87

W

119

w

24

CAN

56

8

88

X

120

x

25

EM

57

9

89

Y

121

y

26

SUB

58

:

90

Z

122

z

27

ESC

59

;

91

[

123

{

28

FS

60

<

92

\

124

|

29

GS

61

=

93

]

125

}

30

RS

62

>

94

^

126

~

31

US

63

?

95

127

DEL


 





 

/**************************************************************/

 000      000    000  00000000      NUL    (Null char.)
 001      001    001  00000001      SOH    (Start of Header)
 002      002    002  00000010      STX    (Start of Text)
 003      003    003  00000011      ETX    (End of Text)
 004      004    004  00000100      EOT    (End of Transmission)
 005      005    005  00000101      ENQ    (Enquiry)
 006      006    006  00000110      ACK    (Acknowledgment)
 007      007    007  00000111      BEL    (Bell)
 008      010    008  00001000      BS    (Backspace)
 009      011    009  00001001      HT    (Horizontal Tab)
 010      012    00A  00001010      LF    (Line Feed)
 011      013    00B  00001011      VT    (Vertical Tab)
 012      014    00C  00001100      FF    (Form Feed)
 013      015    00D  00001101      CR    (Carriage Return)
 014      016    00E  00001110      SO    (Shift Out)
 015      017    00F  00001111      SI    (Shift In)
 016      020    010  00010000      DLE    (Data Link Escape)
 017      021    011  00010001      DC1 (XON) (Device Control 1)
 018      022    012  00010010      DC2      (Device Control 2)
 019      023    013  00010011      DC3 (XOFF)(Device Control 3)
 020      024    014  00010100      DC4      (Device Control 4)
 021      025    015  00010101      NAK   (Negative Acknowledgement)
 022      026    016  00010110      SYN    (Synchronous Idle)
 023      027    017  00010111      ETB    (End of Trans. Block)
 024      030    018  00011000      CAN    (Cancel)
 025      031    019  00011001      EM    (End of Medium)
 026      032    01A  00011010      SUB    (Substitute)
 027      033    01B  00011011      ESC    (Escape)
 028      034    01C  00011100      FS    (File Separator)
 029      035    01D  00011101      GS    (Group Separator)
 030      036    01E  00011110      RS(RequesttoSendRecordSeparator)
 031      037    01F  00011111      US    (Unit Separator)
 032      040    020  00100000      SP    (Space)
 033      041    021  00100001        !    (exclamation mark)
 034      042    022  00100010        "    (double quote)
 035      043    023  00100011        #    (number sign)
 036      044    024  00100100        $    (dollar sign)
 037      045    025  00100101        %    (percent)
 038      046    026  00100110        &    (ampersand)
 039      047    027  00100111        '    (single quote)
 040      050    028  00101000        (    (left/openingparenthesis)
 041      051    029  00101001        )    (right/closingparenthess)
 042      052    02A  00101010        *    (asterisk)
 043      053    02B  00101011        +    (plus)
 044      054    02C  00101100        ,    (comma)
 045      055    02D  00101101        -    (minus or dash)
 046      056    02E  00101110        .    (dot)
 047      057    02F  00101111        /    (forward slash)
 048      060    030  00110000        0
 049      061    031  00110001        1
 050      062    032  00110010        2
 051      063    033  00110011        3
 052      064    034  00110100        4
 053      065    035  00110101        5
 054      066    036  00110110        6
 055      067    037  00110111        7
 056      070    038  00111000        8
 057      071    039  00111001        9
 058      072    03A  00111010        :    (colon)
 059      073    03B  00111011        ;    (semi-colon)
 060      074    03C  00111100        <    (less than)
 061      075    03D  00111101        =    (equal sign)
 062      076    03E  00111110        >    (greater than)
 063      077    03F  00111111        ?    (question mark)
 064      100    040  01000000        @    (AT symbol)
 065      101    041  01000001        A
 066      102    042  01000010        B
 067      103    043  01000011        C
 068      104    044  01000100        D
 069      105    045  01000101        E
 070      106    046  01000110        F
 071      107    047  01000111        G
 072      110    048  01001000        H
 073      111    049  01001001        I
 074      112    04A  01001010        J
 075      113    04B  01001011        K
 076      114    04C  01001100        L
 077      115    04D  01001101        M
 078      116    04E  01001110        N
 079      117    04F  01001111        O
 080      120    050  01010000        P
 081      121    051  01010001        Q
 082      122    052  01010010        R
 083      123    053  01010011        S
 084      124    054  01010100        T
 085      125    055  01010101        U
 086      126    056  01010110        V
 087      127    057  01010111        W
 088      130    058  01011000        X
 089      131    059  01011001        Y
 090      132    05A  01011010        Z
 091      133    05B  01011011        [    (left/opening bracket)
 092      134    05C  01011100        \    (back slash)
 093      135    05D  01011101        ]    (right/closing bracket)
 094      136    05E  01011110        ^    (caret/cirumflex)
 095      137    05F  01011111        _    (underscore)
 096      140    060  01100000        `
 097      141    061  01100001        a
 098      142    062  01100010        b
 099      143    063  01100011        c
 100      144    064  01100100        d
 101      145    065  01100101        e
 102      146    066  01100110        f
 103      147    067  01100111        g
 104      150    068  01101000        h
 105      151    069  01101001        i
 106      152    06A  01101010        j
 107      153    06B  01101011        k
 108      154    06C  01101100        l
 109      155    06D  01101101        m
 110      156    06E  01101110        n
 111      157    06F  01101111        o
 112      160    070  01110000        p
 113      161    071  01110001        q
 114      162    072  01110010        r
 115      163    073  01110011        s
 116      164    074  01110100        t
 117      165    075  01110101        u
 118      166    076  01110110        v
 119      167    077  01110111        w
 120      170    078  01111000        x
 121      171    079  01111001        y
 122      172    07A  01111010        z
 123      173    07B  01111011        {    (left/opening brace)
 124      174    07C  01111100        |    (vertical bar)
 125      175    07D  01111101        }    (right/closing brace)
 126      176    07E  01111110        ~    (tilde)
 127      177    07F  01111111      DEL    (delete)
前32个控制字符的详细解释:

NUL (null)
SOH (start of heading)
STX (start of text)
ETX (end of text)
EOT (end of transmission) - Not the same as ETB
ENQ (enquiry)
ACK (acknowledge)
BEL (bell) - Caused teletype machines to ring a bell.  Causes a beep
            in many common terminals and terminal emulation programs.
BS  (backspace) - Moves the cursor (or print head) move backwards (left)
                  one space.
TAB (horizontal tab) - Moves the cursor (or print head) right to the next
                      tab stop.  The spacing of tab stops is dependent
                      on the output device, but is often either 8 or 10.
LF  (NL line feed, new line) - Moves the cursor (or print head) to a new
                              line.  On Unix systems, moves to a new line
                              AND all the way to the left.
VT  (vertical tab)
FF  (form feed) - Advances paper to the top of the next page (if the
                  output device is a printer).
CR  (carriage return) - Moves the cursor all the way to the left, but does
                        not advance to the next line.
SO  (shift out) - Switches output device to alternate character set.
SI  (shift in)  - Switches output device back to default character set.
DLE (data link escape)
DC1 (device control 1)
DC2 (device control 2)
DC3 (device control 3)
DC4 (device control 4)
NAK (negative acknowledge)
SYN (synchronous idle)
ETB (end of transmission block) - Not the same as EOT
CAN (cancel)
EM  (end of medium)
SUB (substitute)
ESC (escape)
FS  (file separator)
GS  (group separator)
RS  (record separator)
US  (unit separator)
/****************************************************************/

原文地址:https://www.cnblogs.com/King0502/p/2019339.html