ASCII

ASCII table and description
ASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII code is the numerical representation of a character such as 'a' or '@' or an action of some sort. ASCII was developed a long time ago and now the non-printing characters are rarely used for their original purpose. Below is the ASCII character table and this includes descriptions of the first 32 non-printing characters. ASCII was actually designed for use with teletypes and so the descriptions are somewhat obscure. If someone says they want your CV however in ASCII format, all this means is they want 'plain' text with no formatting such as tabs, bold or underscoring - the raw format that any computer can understand. This is usually so they can easily import the file into their own applications without issues. Notepad.exe creates ASCII text, or in MS Word you can save a file as 'text only'

Extended ASCII Codes

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

Ç

ü

é

â

ä

à

å

ç

ê

ë

è

ï

î

ì

Ä

Å

É

æ

Æ

ô

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

ö

ò

û

ù

ÿ

Ö

Ü

ø

£

Ø

×

ƒ

á

í

ó

ú

ñ

Ñ

ª

º

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

¿

®

¬

½

¼

¡

«

»

_

_

_

¦

¦

Á

Â

À

©

¦

¦

+

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

+

¢

¥

+

+

-

-

+

-

+

ã

Ã

+

+

-

-

¦

-

+

¤

208

209

210

211

212

213

214

215

216

217

218

219

220

221

222

223

224

225

226

227

ð

Ð

Ê

Ë

È

i

Í

Î

Ï

+

+

_

_

¦

Ì

_

Ó

ß

Ô

Ò

228

229

230

231

232

233

234

235

236

237

238

239

240

241

242

243

244

245

246

247

õ

Õ

µ

þ

Þ

Ú

Û

Ù

ý

Ý

¯

´

­

±

_

¾

§

÷

¸

248

249

250

251

252

253

254

255

 

 

 

 

 

 

 

 

 

 

 

 

°

¨

·

¹

³

²

_

 

fine

 

 

 

 

 

 

 

 

 

 

 

 

Extended ASCII Codes
As people gradually required computers to understand additional characters and non-printing characters the ASCII set became restrictive. As with most technology, it took a while to get a single standard for these extra characters and hence there are few varying 'extended' sets. The most popular is presented below.

.

IBM Scan Codes
The following table is nothing to do with ASCII, but has been requested by a number of you out there. When a key on your keyboard is pressed, a code is sent which can be recognised by software. Programmers will find the most use for this table to map keys to actions for the function keys etc.

.

EBCDIC Codes
ASCII is not the only format in use out there. IBM adopted EBCDIC (Extended Binary Coded Decimal Interchange Code) developed for punched cards in the early 1960s and still uses it on mainframes today. It is probably the next most well known character set due to the proliferation of IBM mainframes. It comes in at least six slightly differing forms, so again here is the most common.

 

 ----------------------------------------------------------------------------------------------------

ASCII Table (7-bit)
(ASCII = American Standard Code for Information Interchange)
(also see
Related Links below)

       Decimal   Octal   Hex    Binary     Value       -------   -----   ---    ------     -----        

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    (Request to Send)(Record Separator)        

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/opening parenthesis)         041      051    029   00101001        )    (right/closing parenthesis)         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)

 

 

 

 

ASCII

维基百科,自由的百科全书。

ASCIIAmerican Standard Code for Information Interchange美国信息互换标准代码)是基于罗马字母表的一套电脑编码系统。它主要用于显示现代英语和其他西欧语言。它是现今最通用的单字节编码系统。

控制字符

二进制

十进制

十六进制

缩写

可以显示的表示法

名称/意义

0000 0000

0

00

NUL

Null character

0000 0001

1

01

SOH

Start of Header

0000 0010

2

02

STX

Start of Text

0000 0011

3

03

ETX

End of Text

0000 0100

4

04

EOT

End of Transmission

0000 0101

5

05

ENQ

Enquiry

0000 0110

6

06

ACK

Acknowledgment

0000 0111

7

07

BEL

Bell

0000 1000

8

08

BS

Backspace

0000 1001

9

09

HT

Horizontal Tab

0000 1010

10

0A

LF

换行键

0000 1011

11

0B

VT

Vertical Tab

0000 1100

12

0C

FF

换页键

0000 1101

13

0D

CR

回车键

0000 1110

14

0E

SO

Shift Out

0000 1111

15

0F

SI

Shift In

0001 0000

16

10

DLE

Data Link Escape

0001 0001

17

11

DC1

XON Device Control 1

0001 0010

18

12

DC2

Device Control 2

0001 0011

19

13

DC3

XOFF Device Control 3

0001 0100

20

14

DC4

Device Control 4

0001 0101

21

15

NAK

Negative Acknowledgement

0001 0110

22

16

SYN

Synchronous Idle

0001 0111

23

17

ETB

End of Trans. Block

0001 1000

24

18

CAN

Cancel

0001 1001

25

19

EM

End of Medium

0001 1010

26

1A

SUB

Substitute

0001 1011

27

1B

ESC

Escape

0001 1100

28

1C

FS

File Separator

0001 1101

29

1D

GS

Group Separator

0001 1110

30

1E

RS

Record Separator

0001 1111

31

1F

US

Unit Separator

0111 1111

127

7F

DEL

Delete

 

可显示字符

二进制

十进制

十六进制

图形

0010 0000

32

20

(空格) ()

0010 0001

33

21

!

0010 0010

34

22

"

0010 0011

35

23

#

0010 0100

36

24

$

0010 0101

37

25

%

0010 0110

38

26

&

0010 0111

39

27

'

0010 1000

40

28

(

0010 1001

41

29

)

0010 1010

42

2A

*

0010 1011

43

2B

+

0010 1100

44

2C

,

0010 1101

45

2D

-

0010 1110

46

2E

.

0010 1111

47

2F

/

0011 0000

48

30

0

0011 0001

49

31

1

0011 0010

50

32

2

0011 0011

51

33

3

0011 0100

52

34

4

0011 0101

53

35

5

0011 0110

54

36

6

0011 0111

55

37

7

0011 1000

56

38

8

0011 1001

57

39

9

0011 1010

58

3A

:

0011 1011

59

3B

;

0011 1100

60

3C

<  

0011 1101

61

3D

=

0011 1110

62

3E

>  

0011 1111

63

3F

?

 

 

 

 

 

Binary

Decimal

Hex

Graphic

0100 0000

64

40

@

0100 0001

65

41

A

0100 0010

66

42

B

0100 0011

67

43

C

0100 0100

68

44

D

0100 0101

69

45

E

0100 0110

70

46

F

0100 0111

71

47

G

0100 1000

72

48

H

0100 1001

73

49

I

0100 1010

74

4A

J

0100 1011

75

4B

K

0100 1100

76

4C

L

0100 1101

77

4D

M

0100 1110

78

4E

N

0100 1111

79

4F

O

0101 0000

80

50

P

0101 0001

81

51

Q

0101 0010

82

52

R

0101 0011

83

53

S

0101 0100

84

54

T

0101 0101

85

55

U

0101 0110

86

56

V

0101 0111

87

57

W

0101 1000

88

58

X

0101 1001

89

59

Y

0101 1010

90

5A

Z

0101 1011

91

5B

[

0101 1100

92

5C

/

0101 1101

93

5D

]

0101 1110

94

5E

^

0101 1111

95

5F

_

Binary

Decimal

Hex

Graphic

0110 0000

96

60

`

0110 0001

97

61

a

0110 0010

98

62

b

0110 0011

99

63

c

0110 0100

100

64

d

0110 0101

101

65

e

0110 0110

102

66

f

0110 0111

103

67

g

0110 1000

104

68

h

0110 1001

105

69

i

0110 1010

106

6A

j

0110 1011

107

6B

k

0110 1100

108

6C

l

0110 1101

109

6D

m

0110 1110

110

6E

n

0110 1111

111

6F

o

0111 0000

112

70

p

0111 0001

113

71

q

0111 0010

114

72

r

0111 0011

115

73

s

0111 0100

116

74

t

0111 0101

117

75

u

0111 0110

118

76

v

0111 0111

119

77

w

0111 1000

120

78

x

0111 1001

121

79

y

0111 1010

122

7A

z

0111 1011

123

7B

{

0111 1100

124

7C

|

0111 1101

125

7D

}

0111 1110

126

7E

~

 

                                                                                                  2007-6-7   陈为超              

 
ASCII(American Standard Code for Information Interchange)即美国信息交换标准代码,是上个世纪60年代美国制定的一套字符编码,对英语字符与二进制位之间的关系做了统一规定[^3]。 ### ASCII码的基本情况 ASCII码一共规定了128个字符的编码,这些符号(包括32个不能打印出来的控制符号),只占用了一个字节的后面7位,最前面的1位统一规定为0。每个字符都对应一个十进制值,这些值从0到127不等。例如,空格 “SPACE” 对应的十进制值是32(二进制 00100000 ),大写的字母 A 对应的十进制值是65(二进制 01000001 )[^3]。 ### ASCII字符集的组成 ASCII字符集可以分为控制字符和可打印字符。控制字符用于计算机内部的控制指令,如换行、退格等;可打印字符则包括大小写英文字母、数字、标点符号等,涵盖了计算机数据处理中的可打印字符,其对应的十进制值从32到127[^2]。 ### 扩展ASCII码 由于现今大多数系统使用8位的字节,它可以表示256个不同的值。除了128个标准的ASCII代码,后128个被称为扩展ASCII码。许多基于x86的系统都支持使用扩展(或“高”)ASCII。扩展ASCII码允许将每个字符的第8位用于确定附加的128个特殊符号字符、外来语字母和图形符号。存在不止一个扩展ASCII字符集,两个最常用的扩展ASCII字符集是OEM和ANSI扩展ASCII码。OEM字符集被大多数PC兼容机的硬件采用,旧的DOS系统也使用该字符集,它包括一些国外的符号、显著的人物和作品代表面板;ANSI扩展ASCII码是最新操作系统的默认字符集[^1][^4]。 ### ASCII码在计算机中的作用 计算机内部只能处理0和1,为了表示字母和其它非数字字符,计算机使用ASCII表,表中每个字符始终代表相同的顺序号,这样就能将字符转换为计算机能够处理的二进制数据,实现数据在计算机中的处理和存储[^4]。 ### 示例代码 以下是一个Python示例,用于展示如何获取字符的ASCII码值和根据ASCII码值获取字符: ```python # 获取字符的ASCII码值 char = 'A' ascii_value = ord(char) print(f"字符 {char} 的ASCII码值是: {ascii_value}") # 根据ASCII码值获取字符 ascii_value = 65 char = chr(ascii_value) print(f"ASCII码值为 {ascii_value} 的字符是: {char}") ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值