ASCII 字元集 (The ASCII Character Set) 為7位元之字元集,共128個字元。
包含數字 0 至 9、英文字母大小寫 A 至 Z 與部分特殊字元,現代電腦網路使用上都基於 ASCII 字元集。
以下表列 128 個 ASCII 字元集與其 HTML 之編碼:

ASCII Printable Characters

   ASCII HTML Entity Code Description
Character Dec Hex

    space
! ! ! exclamation mark (point)
" " " quotation mark (double quotes)
# # # number sign
$ $ $ dollar sign
% % % percent sign
& & & ampersand
' ' ' apostrophe (single quote)
( ( ( left parenthesis
) ) ) right parenthesis
* * * asterisk
+ + + plus sign
, , , comma
- - - minus sign / hyphen
. . . period
/ / / slash
0 0 0 digit 0 (zero)
1 1 1 digit 1 (one)
2 2 2 digit 2 (two)
3 3 3 digit 3 (three)
4 4 4 digit 4 (four)
5 5 5 digit 5 (five)
6 6 6 digit 6 (six)
7 7 7 digit 7 (seven)
8 8 8 digit 8 (eight)
9 9 9 digit 9 (nine)
: : : colon
; &#59; &#x3B; semicolon
< &#60; &#x3C; less-than sign
= &#61; &#x3D; equal sign
> &#62; &#x3E; greater-than sign
? &#63; &#x3F; question mark
@ &#64; &#x40; at sign
A &#65; &#x41; uppercase A
B &#66; &#x42; uppercase B
C &#67; &#x43; uppercase C
D &#68; &#x44; uppercase D
E &#69; &#x45; uppercase E
F &#70; &#x46; uppercase F
G &#71; &#x47; uppercase G
H &#72; &#x48; uppercase H
I &#73; &#x49; uppercase I
J &#74; &#x4A; uppercase J
K &#75; &#x4B; uppercase K
L &#76; &#x4C; uppercase L
M &#77; &#x4D; uppercase M
N &#78; &#x4E; uppercase N
O &#79; &#x4F; uppercase O
P &#80; &#x50; uppercase P
Q &#81; &#x51; uppercase Q
R &#82; &#x52; uppercase R
S &#83; &#x53; uppercase S
T &#84; &#x54; uppercase T
U &#85; &#x55; uppercase U
V &#86; &#x56; uppercase V
W &#87; &#x57; uppercase W
X &#88; &#x58; uppercase X
Y &#89; &#x59; uppercase Y
Z &#90; &#x5A; uppercase Z
[ &#91; &#x5B; left square bracket
\ &#92; &#x5C; backslash
] &#93; &#x5D; right square bracket
^ &#94; &#x5E; caret / circumflex
_ &#95; &#x5F; underscore
` &#96; &#x60; grave accent
a &#97; &#x61; lowercase a
b &#98; &#x62; lowercase b
c &#99; &#x63; lowercase c
d &#100; &#x64; lowercase d
e &#101; &#x65; lowercase e
f &#102; &#x66; lowercase f
g &#103; &#x67; lowercase g
h &#104; &#x68; lowercase h
i &#105; &#x69; lowercase i
j &#106; &#x6A; lowercase j
k &#107; &#x6B; lowercase k
l &#108; &#x6C; lowercase l
m &#109; &#x6D; lowercase m
n &#110; &#x6E; lowercase n
o &#111; &#x6F; lowercase o
p &#112; &#x70; lowercase p
q &#113; &#x71; lowercase q
r &#114; &#x72; lowercase r
s &#115; &#x73; lowercase s
t &#116; &#x74; lowercase t
u &#117; &#x75; lowercase u
v &#118; &#x76; lowercase v
w &#119; &#x77; lowercase w
x &#120; &#x78; lowercase x
y &#121; &#x79; lowercase y
z &#122; &#x7A; lowercase z
{ &#123; &#x7B; left curly brace
| &#124; &#x7C; vertical bar
} &#125; &#x7D; right curly brace
~ &#126; &#x7E; equivalency sign / tilde
 
ASCII Device Control Characters

Abbreviation HTML Entity Code Description
Dec Hex

NUL &#00; &#x00; null character
SOH &#01; &#x01; start of header
STX &#02; &#x02; start of text
ETX &#03; &#x03; end of text
EOT &#04; &#x04; end of transmission
ENQ &#05; &#x05; enquiry
ACK &#06; &#x06; acknowledge
BEL &#07; &#x07; bell (ring)
BS &#08; &#x08; backspace
HT &#09; &#x09; horizontal tab
LF &#10; &#x0A; line feed
VT &#11; &#x0B; vertical tab
FF &#12; &#x0C; form feed
CR &#13; &#x0D; carriage return
SO &#14; &#x0E; shift out
SI &#15; &#x0F; shift in
DLE &#16; &#x10; data link escape
DC1 &#17; &#x11; device control 1
DC2 &#18; &#x12; device control 2
DC3 &#19; &#x13; device control 3
DC4 &#20; &#x14; device control 4
NAK &#21; &#x15; negative acknowledge
SYN &#22; &#x16; synchronize
ETB &#23; &#x17; end transmission block
CAN &#24; &#x18; cancel
EM &#25; &#x19; end of medium
SUB &#26; &#x1A; substitute
ESC &#27; &#x1B; escape
FS &#28; &#x1C; file separator
GS &#29; &#x1D; group separator
RS &#30; &#x1E; record separator
US &#31; &#x1F; unit separator
DEL &#127; &#x7F; delete (rubout)

註:控制字元在 HTML 中並無作用。

摘自網路

搗蛋鬼 發表在 痞客邦 PIXNET 留言(0) 人氣()