Website Coding: ASCII Special Characters

By Scott Clark

Many Content Management System (CMS) users who have entered what are referred to as "special characters" into the CMS have run into the situation where those characters do not show up as intended once they are live on the site. In this tutorial we'll show you the way they are supposed to appear, the numerical code and the hex code for these characters to avoid these problems in the future.



Most of these special characters are a part of the ISO Latin Alphabet No. 1 table. The ISO Latin Alphabet is not latin characters, that is, not ONLY latin characters. It also includes special characters, letters with accents and other diacritical marks, as well as scientific and currency symbols.



We are going to show you the basic ASCII codes that you are likely to run into below, however there are a bunch of other codes that you may run into if you are into publishing content in foreign languages. There are many articles available on the subject, however this article from Penn State on computing with accents, symbols and foreign scripts should cover all those that aren't shown below. Their homepage is shown below:

Getting back to the subject, here are the ASCII codes to keep your content looking proper! [editor's note: this chart was created using information obtained from several ASCII charts]



Display Friendly Numerical Hex Description
    	 	 Horizontal Tab
    
  Line feed
        space
!   ! ! Exclamation point
" " " " Double quote
#   # # Number sign
$   $ $ Dollar sign
%   % % Percent sign
& & & & Ampersand
'   ' ' Single quote
(   ( ( Left parenthesis
)   ) ) Right parenthesis
*   * * Asterisk
+   + + Plus
,   , , Comma
-   - - Minus
.   . . Period
/   / / Forward slash
0   0 0 Zero
1   1 1 One
2   2 2 Two
3   3 3 Three
4   4 4 Four
5   5 5 Five
6   6 6 Six
7   7 7 Seven
8   8 8 Eight
9   9 9 Nine
:   : : Colon
;   &#59; &#x3B; Semi-colon
< &lt; &#60; &#x3C; Less-than sign
=   &#61; &#x3D; Equal sign
> &gt; &#62; &#x3E; Greater-than sign
?   &#63; &#x3F; Question mark
@   &#64; &#x40; At-sign
A   &#65; &#x41; Capital a
B   &#66; &#x42; Capital b
C   &#67; &#x43; Capital c
D   &#68; &#x44; Capital d
E   &#69; &#x45; Capital e
F   &#70; &#x46; Capital f
G   &#71; &#x47; Capital g
H   &#72; &#x48; Capital h
I   &#73; &#x49; Capital i
J   &#74; &#x4A; Capital j
K   &#75; &#x4B; Capital k
L   &#76; &#x4C; Capital l
M   &#77; &#x4D; Capital m
N   &#78; &#x4E; Capital n
O   &#79; &#x4F; Capital o
P   &#80; &#x50; Capital p
Q   &#81; &#x51; Capital q
R   &#82; &#x52; Capital r
S   &#83; &#x53; Capital s
T   &#84; &#x54; Capital t
U   &#85; &#x55; Capital u
V   &#86; &#x56; Capital v
W   &#87; &#x57; Capital w
X   &#88; &#x58; Capital x
Y   &#89; &#x59; Capital y
Z   &#90; &#x5A; Capital z
[   &#91; &#x5B; Left square bracket
\   &#92; &#x5C; Back slash
]   &#93; &#x5D; Right square bracket
^   &#94; &#x5E; Caret
_   &#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
~ &tilde; &#126; &#x7E; tilde
   &#127; &#x7F; Not defined
  &#128; &#x80; Euro
   &#129; &#x81;  Unknown
&sbquo; &#130; &#x82; Single low-quote
ƒ   &#131; &#x83; Function symbol
&dbquo; &#132; &#x84; Double low-quote
  &#133; &#x85; Elipsis
&dagger; &#134; &#x86; Dagger
&Dagger; &#135; &#x87; Double dagger
ˆ   &#136; &#x88;  Hatchek
&permil; &#137; &#x89; Per million symbol
Š   &#138; &#x8A; Capital esh
&lsaquo; &#139; &#x8B;  Left single angle quote
Œ   &#140; &#x8C; OE ligature
   &#141; &#x8D; Unknown
Ž   &#142; &#x8E; Capital ž
   &#143; &#x8F;  Unknown
   &#144; &#x90;  Unknown
&lsquo; &#145; &#x91; Left single-quote
&rsquo; &#146; &#x92; Right single-quote
&ldquo; &#147; &#x93; Left double-quote
&rdquo; &#148; &#x94; Right double-quote
  &#149; &#x95; Small bullet
&ndash; &#150; &#x96; En dash
&mdash; &#151; &#x97; Em dash
˜ &tilde &#152; &#x98;  Tilde
&trade; &#153; &#x99; Trademark
š   &#154; &#x9A; Lowercase esh
&rsaquo; &#155; &#x9B;  Right single angle quote
œ   &#156; &#x9C; oe ligature
   &#157; &#x9D; Unknown
ž   &#158; &#x9E;  Lowercase ž
Ÿ &Yuml; &#159; &#x9F; Uppercase y-umlaut
  &nbsp; &#160; &#xA0; Non-breaking space
¡ &iexcl; &#161; &#xA1; Inverted exclamation point
¢ &cent; &#162; &#xA2; Cent
£ &pound; &#163; &#xA3; Pound currency sign
¤ &curren; &#164; &#xA4; Currency sign
¥ &yen; &#165; &#xA5; Yen currency sign
¦ &brvbar; &#166; &#xA6; Broken vertical bar
§ &sect; &#167; &#xA7; Section symbol
¨ &uml; &#168; &#xA8; Umlaut
© &copy; &#169; &#xA9; Copyright
ª &ordf; &#170; &#xAA; Feminine ordinal indicator
« &laquo; &#171; &#xAB; Left angle quote
¬ &not; &#172; &#xAC; Not sign
­  &shy; &#173; &#xAD; Soft hyphen
® &reg; &#174; &#xAE; Registered sign
¯ &macr; &#175; &#xAF; Macron
° &deg; &#176; &#xB0; Degree sign
± &plusmn; &#177; &#xB1; Plus/minus sign
² &sup2; &#178; &#xB2; Superscript 2
³ &sup3; &#179; &#xB3; Superscript 3
´   &#180; &#xB4; Acute accent
µ &micro; &#181; &#xB5; Micro sign
&para; &#182; &#xB6; Pilcrow sign
· &middot; &#183; &#xB7; Middle dot
¸ &cedil; &#184; &#xB8; Cedilla
¹ &sup1; &#185; &#xB9; Superscript 1
º &ordm; &#186; &#xBA; Masculine ordinal indicator
» &raquo; &#187; &#xBB; Right angle quote
¼ &frac14; &#188; &#xBC; One quarter fraction
½ &frac12; &#189; &#xBD; One half fraction
¾ &frac34; &#190; &#xBE; Three quarters fraction
¿ &iquest; &#191; &#xBF; Inverted question mark
À &Agrave; &#192; &#xC0; A grave accent
Á &Aacute; &#193; &#xC1; A accute accent
 &Acirc; &#194; &#xC2; A circumflex
à &Atilde; &#195; &#xC3; A tilde
Ä &Auml; &#196; &#xC4; A umlaut
Å &Aring; &#197; &#xC5; A ring
Æ &AElig; &#198; &#xC6; AE ligature
Ç &Ccedil; &#199; &#xC7; C cedilla
È &Egrave; &#200; &#xC8; E grave
É &Eacute; &#201; &#xC9; E acute
Ê &Ecirc; &#202; &#xCA; E circumflex
Ë &Euml; &#203; &#xCB; E umlaut
Ì &Igrave; &#204; &#xCC; I grave
Í &Iacute; &#205; &#xCD; I acute
Î &Icirc; &#206; &#xCE; I circumflex
Ï &Iuml; &#207; &#xCF; I umlaut
Ð &ETH; &#208; &#xD0; Eth
Ñ &Ntilde; &#209; &#xD1; N tilde (enye)
Ò &Ograve; &#210; &#xD2; O grave
Ó &Oacute; &#211; &#xD3; O acute
Ô &Ocirc; &#212; &#xD4; O circumflex
Õ &Otilde; &#213; &#xD5; O tilde
Ö &Ouml; &#214; &#xD6; O umlaut
× &times; &#215; &#xD7; Multiplication sign
Ø &Oslash; &#216; &#xD8; O slash
Ù &Ugrave; &#217; &#xD9; U grave
Ú &Uacute; &#218; &#xDA; U acute
Û &Ucirc; &#219; &#xDB; U circumflex
Ü &Uuml; &#220; &#xDC; U umlaut
Ý &Yacute; &#221; &#xDD; Y acute
Þ &THORN; &#222; &#xDE; Thorn
ß &szlig; &#223; &#xDF; SZ ligature
à &agrave; &#224; &#xE0; a grave
á &aacute; &#225; &#xE1; a acute
â &acirc; &#226; &#xE2; a circumflex
ã &atilde; &#227; &#xE3; a tilde
ä &auml; &#228; &#xE4; a umlaut
å &aring; &#229; &#xE5; a ring
æ &aelig; &#230; &#xE6; ae ligature
ç &ccedil; &#231; &#xE7; c cedilla
è &egrave; &#232; &#xE8; e grave
é &eacute; &#233; &#xE9; e acute
ê &ecirc; &#234; &#xEA; e circumflex
ë &euml; &#235; &#xEB; e umlaut
ì &igrave; &#236; &#xEC; i grave
í &iacute; &#237; &#xED; i acute
î &icirc; &#238; &#xEE; i circumflex
ï &iuml; &#239; &#xEF; i umlaut
ð &eth; &#240; &#xF0; eth
ñ &ntilde; &#241; &#xF1; n tilde
ò &ograve; &#242; &#xF2; o grave
ó &oacute; &#243; &#xF3; o acute
ô &ocirc; &#244; &#xF4; o circumflex
õ &otilde; &#245; &#xF5; o tilde
ö &ouml; &#246; &#xF6; o umlaut
÷ &divide; &#247; &#xF7; Division symbol
ø &oslash; &#248; &#xF8; o slash
ù &ugrave; &#249; &#xF9; u grave
ú &uacute; &#250; &#xFA; u acute
û &ucirc; &#251; &#xFB; u circumflex
ü &uuml; &#252; &#xFC; u umlaut
ý &yacute; &#253; &#xFD; y acute
þ &thorn; &#254; &#xFE; thorn
ÿ &yuml; &#255; &#xFF; y umlaut


Make a Comment

Loading Comments...

  • Web Development Newsletter Signup

    Invalid email
    You have successfuly registered to our newsletter.
  •  
  •  
  •  
Thanks for your registration, follow us on our social networks to keep up-to-date