Skip to content
Related Articles

Related Articles

Improve Article

HTML | Charsets

  • Difficulty Level : Basic
  • Last Updated : 03 Dec, 2018

The web browser displays the alphabets, numbers and some other symbols correctly. This is all possible because of the required character set that web browser uses. The character set or character encoding has different character encoding standards which assign some numbers to these character set which can be used in the internet.

ASCII: American Standard Code for Information Interchange (ANSII) created this character encoding. This character encoding are used in C/C++ programming. It has 128 alphanumeric characters consisting of alphabets(A-Z) and (a-z) and some special symbols like + – * / ( ) @ etc.

ANSI(Windows-1252): American National Standards Institute (ANSI) created character encoding supported 256 characters. It is used as default character set in Microsoft Windows.

ISO-8859-1: It is used as default character set of HTML4 and also supports 256 characters. The International Standards Organization (ISO) defines the standard character sets for different alphabets/languages. It contains numbers, upper and lowercase English letters, and some special characters.

UTF-8: UTF-8 and UTF-16 standards was developed by Unicode Consortium, because the ISO-8859 character-sets are limited, and not compatible a multilingual environment. It consists all the character and punctuation symbols.



Attribute: Web browser must know the character encoding standard used the html page and this we do as given below.

Examples:

HTML4




<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">

HTML5




<meta charset="UTF-8">

Character set for different character encoding standard: Following list shows different character encoding standards with their characters and their assigned number codes.

Table 1: This table contains characters having same numbers assigned in different character encoding.

NUMBERASCII ANSI ISO-8859-1 UTF-8DESCRIPTION
32Space
33!Exclamation Mark
34"Quotation Mark
35#Hash Sign
36$Dollar Sign
37%Percent Sign
38&Ampersand Sign
39'Apostrophe Sign
40(Opening Paranthesis
41)Closing Parenthesis
42*Asterisk Sign
43+Plus Sign
44,Comma
45-Hyphen/minus Sign
46.Full-stop
47/Slash/Divide Sign
480Number Zero
491Number One
502Number Two
513Number Three
524Number Four
535Number Five
546Number Six
557Number Seven
568Number Eight
579Number Nine
58:Colon
59;Semicolon
60<Lessthan Sign
61=Equalto Sign
62>Greaterthan Sign
63?Question Mark
64@at Sign
65ALetter A
66BLetter B
67CLetter C
68DLetter D
69ELetter E
70FLetter F
71GLetter G
72HLetter H
73ILetter I
74JLetter J
75KLetter K
76LLetter L
77MLetter M
78NLetter N
79OLetter O
80PLetter P
81QLetter Q
82RLetter R
83SLetter S
84TLetter T
85ULetter U
86VLetter V
87WLetter W
88XLetter X
89YLetter Y
90ZLetter Z
91[Opening Square Bracket
92\Backslash
93]Closing Square Bracket
94^Circumflex Accent
95_Low Line
96`Grave Accent
97aLetter a
98bLetter b
99cLetter c
100dLetter d
101eLetter e
102fLetter f
103gLetter g
104hLetter h
105iLetter i
106jLetter j
107kLetter k
108lLetter l
109mLetter m
110nLetter n
111oLetter o
112pLetter p
113qLetter q
114rLetter r
115sLetter s
116tLetter t
117uLetter u
118vLetter v
119wLetter w
120xLetter x
121yLetter y
122zLetter z
123{Opening Curly Bracket
124|Vertical Line
125}Closing Curly Bracket
126~Tilde

Table 2: This table contains character having different character encoding.

ASCIIANSIISO-8859-1UTF-8DESCRIPTION
127   DEL
 128  
Not Used
 130  
 131  ƒ
 132  
 133  
 134  
 135  
 136  ˆ
 137  
 138  Š
 139  
 140  Œ
141141141141Not Used
 142  Ž
143143143143Not Used
144144144144Not Used
 145  
 146  
 147  
 148  
 149  
 150  
 151  
 152  ˜
 153  
 154  š
 155  
 156  œ
157157157157Not Used
 158  ž
 159  Ÿ
160160160160no-break Space
161161161¡
 162162162¢
 163163163£
 164164164¤
 165165165¥
 166166166¦
 167167167§
 168168168¨
 169169169©
 170170170ª
 171171171«
 172172172¬
 173173173­
 174174174®
 175175175¯
 176176176°
 177177177±
 178178178²
 179179179³
 180180180´
 181181181µ
 182182182
 183183183·
 184184184¸
 185185185¹
 186186186º
 187187187»
 188188188¼
 189189189½
 190190190¾
 191191191¿
 192192192À
 193193193Á
 194194194Â
 195195195Ã
 196196196Ä
 197197197Å
 198198198Æ
 199199199Ç
 200200200È
 201201201É
 202202202Ê
 203203203Ë
 204204204Ì
 205205205Í
 206206206Î
 207207207Ï
 208208208Ð
 209209209Ñ
 210210210Ò
 211211211Ó
 212212212Ô
 213213213Õ
 214214214Ö
 215215215×
 216216216Ø
 217217217Ù
 218218218Ú
 219219219Û
 220220220Ü
 221221221Ý
 222222222Þ 223223223ß
 224224224à
 225225225á
 226226226â
 227227227ã
 228228228ä
 229229229å
 230230230æ
 231231231ç
 232232232è
 233233233é
 234234234ê
 235235235ë
 236236236ì
 237237237í
 238238238î
 239239239ï
 240240240ð
 241241241ñ
 242242242ò
 243243243ó
 244244244ô
 245245245õ
 246246246ö
 247247247÷
 248248248ø
 249249249ù
 250250250ú
 251251251û
 252252252ü
 253253253ý
 254254254þ
 255255255ÿ

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.




My Personal Notes arrow_drop_up
Recommended Articles
Page :