ASCII码表

来源:互联网 发布:源代码流程图软件 编辑:程序博客网 时间:2024/06/01 09:13
ASCII 码表

Decimal        Hex             Value
----------     ----------      ----------
000            0x00            NUL (Null char.)
001            0x01            SOH (Start of Header)
002            0x02            STX (Start of Text)
003            0x03            ETX (End of Text)
004            0x04            EOT (End of Transmission)
005            0x05            ENQ (Enquiry)
006            0x06            ACK (Acknowledgment)
007            0x07            BEL (Bell)
008            0x08            BS (Backspace)
009            0x09            HT (Horizontal Tab)
010            0x0A            LF (Line Feed)
011            0x0B            VT (Vertical Tab)
012            0x0C            FF (Form Feed)
013            0x0D            CR (Carriage Return)
014            0x0E            SO (Shift Out)
015            0x0F            SI (Shift In)
016            0x10            DLE (Data Link Escape)
017            0x11            DC1 (XON) (Device Control 1)
018            0x12            DC2 (Device Control 2)
019            0x13            DC3 (XOFF)(Device Control 3)
020            0x14            DC4 (Device Control 4)
021            0x15            NAK (Negative Acknowledgement)
022            0x16            SYN (Synchronous Idle)
023            0x17            ETB (End of Trans. Block)
024            0x18            CAN (Cancel)
025            0x19            EM (End of Medium)
026            0x1A            SUB (Substitute)
027            0x1B            ESC (Escape)
028            0x1C            FS (File Separator)
029            0x1D            GS (Group Separator)
030            0x1E            RS (Request to Send)(Record Separator)
031            0x1F            US (Unit Separator)
032            0x20            SP (Space)
033            0x21            ! (exclamation mark)
034            0x22            " (double quote)
035            0x23            # (number sign)
036            0x24            $ (dollar sign)
037            0x25            % (percent)
038            0x26            & (ampersand)
039            0x27            ' (single quote)
040            0x28            ( (left/opening parenthesis)
041            0x29            ) (right/closing parenthesis)
042            0x2A            * (asterisk)
043            0x2B            + (plus)
044            0x2C            , (comma)
045            0x2D            - (minus or dash)
046            0x2E            . (dot)
047            0x2F            / (forward slash)
048            0x30            0
049            0x31            1
050            0x32            2
051            0x33            3
052            0x34            4
053            0x35            5
054            0x36            6
055            0x37            7
056            0x38            8
057            0x39            9
058            0x3A            : (colon)
059            0x3B            ; (semi-colon)
060            0x3C            < (less than)
061            0x3D            = (equal sign)
062            0x3E            > (greater than)
063            0x3F            ? (question mark)
064            0x40            @ (AT symbol)
065            0x41            A
066            0x42            B
067            0x43            C
068            0x44            D
069            0x45            E
070            0x46            F
071            0x47            G
072            0x48            H
073            0x49            I
074            0x4A            J
075            0x4B            K
076            0x4C            L
077            0x4D            M
078            0x4E            N
079            0x4F            O
080            0x50            P
081            0x51            Q
082            0x52            R
083            0x53            S
084            0x54            T
085            0x55            U
086            0x56            V
087            0x57            W
088            0x58            X
089            0x59            Y
090            0x5A            Z
091            0x5B            [ (left/opening bracket)
092            0x5C            / (back slash)
093            0x5D            ] (right/closing bracket)
094            0x5E            ^ (caret/cirumflex)
095            0x5F            _ (underscore)
096            0x60            `
097            0x61            a
098            0x62            b
099            0x63            c
100            0x64            d
101            0x65            e
102            0x66            f
103            0x67            g
104            0x68            h
105            0x69            i
106            0x6A            j
107            0x6B            k
108            0x6C            l
109            0x6D            m
110            0x6E            n
111            0x6F            o
112            0x70            p
113            0x71            q
114            0x72            r
115            0x73            s
116            0x74            t
117            0x75            u
118            0x76            v
119            0x77            w
120            0x78            x
121            0x79            y
122            0x7A            z
123            0x7B            { (left/opening brace)
124            0x7C            | (vertical bar)
125            0x7D            } (right/closing brace)
126            0x7E            ~ (tilde)
127            0x7F            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)
原创粉丝点击