ASCII Character Cheatsheet

本文为 ASCII 速查表格, 如果有用请收藏 ⭐ ~

二进制八进制十进制十六进制ACSIIvisibledigraphs正则表达式name(en)name(cn)
0b0000000000000x00NUL^@NU\c@NULL (NUL)空字符
0b0000000100110x01SOH^ASH\cASTART OF HEADING (SOH)标题开始
0b0000001000220x02STX^BSX\cBSTART OF TEXT (STX)文本开始
0b0000001100330x03ETX^CEX\cCEND OF TEXT (ETX)文本结束
0b0000010000440x04EOT^DET\cDEND OF TRANSMISSION (EOT)传输结束
0b0000010100550x05ENQ^EEQ\cEENQUIRY (ENQ)询问
0b0000011000660x06ACK^FAK\cFACKNOWLEDGE (ACK)确认
0b0000011100770x07BEL^GBL\a, \cGBELL (BEL)警报字符
0b0000100001080x08BS^HBS[\b], \cHBACKSPACE (BS)退格符
0b0000100101190x09HT^IHT\t, \cICHARACTER TABULATION (HT)水平制表符
0b00001010012100x0ALF^JLF\n, \cJLINE FEED (LF)换行符
0b00001011013110x0BVT^KVT\v, \cKLINE TABULATION (VT)垂直制表符
0b00001100014120x0CFF^LFF\f, \cLFORM FEED (FF)换页符
0b00001101015130x0DCR^MCR\r, \cMCARRIAGE RETURN (CR)回车符
0b00001110016140x0ESO^NSO\cNSHIFT OUT (SO)移出
0b00001111017150x0FSI^OSI\cOSHIFT IN (SI)移入
0b00010000020160x10DLE^PDL\cPDATALINK ESCAPE (DLE)数据链转义
0b00010001021170x11DC1^QD1\cQDEVICE CONTROL ONE (DC1)设备控制 1(XON)
0b00010010022180x12DC2^RD2\cRDEVICE CONTROL TWO (DC2)设备控制 2
0b00010011023190x13DC3^SD3\cSDEVICE CONTROL THREE (DC3)设备控制 3(XOFF)
0b00010100024200x14DC4^TD4\cTDEVICE CONTROL FOUR (DC4)设备控制 4
0b00010101025210x15NAK^UNK\cUNEGATIVE ACKNOWLEDGE (NAK)否定性确认
0b00010110026220x16SYN^VSY\cVSYNCHRONOUS IDLE (SYN)同步空闲
0b00010111027230x17ETB^WEB\cWEND OF TRANSMISSION BLOCK (ETB)传输块结尾
0b00011000030240x18CAN^XCN\cXCANCEL (CAN)取消
0b00011001031250x19EM^YEM\cYEND OF MEDIUM (EM)介质结尾
0b00011010032260x1ASUB^ZSB\cZSUBSTITUTE (SUB)替换
0b00011011033270x1BESC^[EC\e, \c[ESCAPE (ESC)转义
0b00011100034280x1CFS^|FS\c|FILE SEPARATOR (IS4)文件分隔符
0b00011101035290x1DGS^]GS\c]GROUP SEPARATOR (IS3)分组分隔符
0b00011110036300x1ERS^^RS\c^RECORD SEPARATOR (IS2)记录分隔符
0b00011111037310x1FUS^_US\c_UNIT SEPARATOR (IS1)单元分隔符
0b00100000040320x20SPSPSP\sSPACE空格
0b00100001041330x21!!-EXCLAMATION MARK感叹号
0b00100010042340x22-DOUBLE QUOTES; QUOTATION MARK; SPEECH MARKS引号
0b00100011043350x23##Nb-NUMBER SIGN井号
0b00100100044360x24$$DO-DOLLAR SIGN美元符
0b00100101045370x25%%-PERCENT SIGN百分号
0b00100110046380x26&&-AMPERSAND和号
0b00100111047390x27-SINGLE QUOTE OR APOSTROPHE撇号
0b00101000050400x28((-ROUND BRACKETS OR PARENTHESES, OPENING ROUND BRACKET左括号
0b00101001051410x29))-PARENTHESES OR ROUND BRACKETS, CLOSING PARENTHESES右括号
0b00101010052420x2A**-ASTERISK星号
0b00101011053430x2B++-PLUS SIGN加号
0b00101100054440x2C,,-COMMA逗号
0b00101101055450x2D---HYPHEN , MINUS SIGN连字符
0b00101110056460x2E..-DOT, FULL STOP句号
0b00101111057470x2F//-SLASH , FORWARD SLASH , FRACTION BAR , DIVISION SLASH斜线
0b00110000060480x3000-NUMBER ZERO数字 0
0b00110001061490x3111-NUMBER ONE数字 1
0b00110010062500x3222-NUMBER TWO数字 2
0b00110011063510x3333-NUMBER THREE数字 3
0b00110100064520x3444-NUMBER FOUR数字 4
0b00110101065530x3555-NUMBER FIVE数字 5
0b00110110066540x3666-NUMBER SIX数字 6
0b00110111067550x3777-NUMBER SEVEN数字 7
0b00111000070560x3888-NUMBER EIGHT数字 8
0b00111001071570x3999-NUMBER NINE数字 9
0b00111010072580x3A::-COLON冒号
0b00111011073590x3B;;-SEMICOLON分号
0b00111100074600x3C<<-LESS-THAN SIGN小于号
0b00111101075610x3D==-EQUALS SIGN等于号
0b00111110076620x3E>>-GREATER-THAN SIGN ; INEQUALITY大于号
0b00111111077630x3F??-QUESTION MARK问号
0b010000000100640x40@@At-COMMERCIAL ATat
0b010000010101650x41AA-CAPITAL LETTER A拉丁大写字母 A
0b010000100102660x42BB-CAPITAL LETTER B拉丁大写字母 B
0b010000110103670x43CC-CAPITAL LETTER C拉丁大写字母 C
0b010001000104680x44DD-CAPITAL LETTER D拉丁大写字母 D
0b010001010105690x45EE-CAPITAL LETTER E拉丁大写字母 E
0b010001100106700x46FF-CAPITAL LETTER F拉丁大写字母 F
0b010001110107710x47GG-CAPITAL LETTER G拉丁大写字母 G
0b010010000110720x48HH-CAPITAL LETTER H拉丁大写字母 H
0b010010010111730x49II-CAPITAL LETTER I拉丁大写字母 I
0b010010100112740x4AJJ-CAPITAL LETTER J拉丁大写字母 J
0b010010110113750x4BKK-CAPITAL LETTER K拉丁大写字母 K
0b010011000114760x4CLL-CAPITAL LETTER L拉丁大写字母 L
0b010011010115770x4DMM-CAPITAL LETTER M拉丁大写字母 M
0b010011100116780x4ENN-CAPITAL LETTER N拉丁大写字母 N
0b010011110117790x4FOO-CAPITAL LETTER O拉丁大写字母 O
0b010100000120800x50PP-CAPITAL LETTER P拉丁大写字母 P
0b010100010121810x51QQ-CAPITAL LETTER Q拉丁大写字母 Q
0b010100100122820x52RR-CAPITAL LETTER R拉丁大写字母 R
0b010100110123830x53SS-CAPITAL LETTER S拉丁大写字母 S
0b010101000124840x54TT-CAPITAL LETTER T拉丁大写字母 T
0b010101010125850x55UU-CAPITAL LETTER U拉丁大写字母 U
0b010101100126860x56VV-CAPITAL LETTER V拉丁大写字母 V
0b010101110127870x57WW-CAPITAL LETTER W拉丁大写字母 W
0b010110000130880x58XX-CAPITAL LETTER X拉丁大写字母 X
0b010110010131890x59YY-CAPITAL LETTER Y拉丁大写字母 Y
0b010110100132900x5AZZ-CAPITAL LETTER Z拉丁大写字母 Z
0b010110110133910x5B[[<(-LEFT SQUARE BRACKET左方括号
0b010111000134920x5C\\//-REVERSE SOLIDUS反斜线
0b010111010135930x5D]])>-RIGHT SQUARE BRACKET右方括号
0b010111100136940x5E’>-CIRCUMFLEX ACCENT抑扬符号
0b010111110137950x5F__-UNDERSCORE, UNDERSTRIKE, UNDERBAR OR LOW LINE下划线
0b001000000140960x60``’!-GRAVE ACCENT重音符
0b011000010141970x61aa-LOWERCASE LETTER A , MINUSCULE A拉丁小写字母 A
0b011000100142980x62bb-LOWERCASE LETTER B , MINUSCULE B拉丁小写字母 B
0b011000110143990x63cc-LOWERCASE LETTER C , MINUSCULE C拉丁小写字母 C
0b0110010001441000x64dd-LOWERCASE LETTER D , MINUSCULE D拉丁小写字母 D
0b0110010101451010x65ee-LOWERCASE LETTER E , MINUSCULE E拉丁小写字母 E
0b0110011001461020x66ff-LOWERCASE LETTER F , MINUSCULE F拉丁小写字母 F
0b0110011101471030x67gg-LOWERCASE LETTER G , MINUSCULE G拉丁小写字母 G
0b0110100001501040x68hh-LOWERCASE LETTER H , MINUSCULE H拉丁小写字母 H
0b0110100101511050x69ii-LOWERCASE LETTER I , MINUSCULE I拉丁小写字母 I
0b0110101001521060x6Ajj-LOWERCASE LETTER J , MINUSCULE J拉丁小写字母 J
0b0110101101531070x6Bkk-LOWERCASE LETTER K , MINUSCULE K拉丁小写字母 K
0b0110110001541080x6Cll-LOWERCASE LETTER L , MINUSCULE L拉丁小写字母 L
0b0110110101551090x6Dmm-LOWERCASE LETTER M , MINUSCULE M拉丁小写字母 M
0b0110111001561100x6Enn-LOWERCASE LETTER N , MINUSCULE N拉丁小写字母 N
0b0110111101571110x6Foo-LOWERCASE LETTER O , MINUSCULE O拉丁小写字母 O
0b0111000001601120x70pp-LOWERCASE LETTER P , MINUSCULE P拉丁小写字母 P
0b0111000101611130x71qq-LOWERCASE LETTER Q , MINUSCULE Q拉丁小写字母 Q
0b0111001001621140x72rr-LOWERCASE LETTER R , MINUSCULE R拉丁小写字母 R
0b0111001101631150x73ss-LOWERCASE LETTER S , MINUSCULE S拉丁小写字母 S
0b0111010001641160x74tt-LOWERCASE LETTER T , MINUSCULE T拉丁小写字母 T
0b0111010101651170x75uu-LOWERCASE LETTER U , MINUSCULE U拉丁小写字母 U
0b0111011001661180x76vv-LOWERCASE LETTER V , MINUSCULE V拉丁小写字母 V
0b0111011101671190x77ww-LOWERCASE LETTER W , MINUSCULE W拉丁小写字母 W
0b0111100001701200x78xx-LOWERCASE LETTER X , MINUSCULE X拉丁小写字母 X
0b0111100101711210x79yy-LOWERCASE LETTER Y , MINUSCULE Y拉丁小写字母 Y
0b0111101001721220x7Azz-LOWERCASE LETTER Z , MINUSCULE Z拉丁小写字母 Z
0b0111101101731230x7B{{(!-LEFT CURLY BRACKET左花括号
0b0111110001741240x7C||!!-VERTICAL LINE竖线
0b0111110101751250x7D}}!)-RIGHT CURLY BRACKE右花括号
0b0111111001761260x7E~~’?-TILDE波浪符
0b0111111101771270x7FDEL^?DT\c?DELETE (DEL)删除

Vim 中输入特殊字符

diagraph

在 vim 中使用 <C-k>digraphs 可以输入指定的特殊字符(大小写敏感)

digit

在 vim 中使用 <C-v>*** 可以输入不常用字符, 具体 *** 可参考如下:

first charmodemax nr of charsexamplemax value
(none)decimal3<C-v>122255
o or Ooctal3<C-v>o033377 (255)
x or Xhexadecimal2<C-v>x2a / <C-v>X2aff (255)
uhexadecimal4<C-v>u002affff (65535)
Uhexadecimal8<C-v>U0000002a7fffffff (2147483647)

:h i_CTRL-V_digit

ASCII 与 unicode 关系

  • 标准的 ASCII 只有 128 个字符, Unicode 是标准 ASCII 的超集, 是完全兼容的
  • 除了标准 ASCII, 还有一个 Extended ASCII, 有 256 个字符, Extended ASCII 的 128255 字符是与 Unicode 不兼容的; 出于通用化考虑, Extended ASCII 可以不用考虑了

Ref

本博客文章采用 CC 4.0 协议,转载需注明出处和作者。

鼓励作者