Professional Documents
Culture Documents
Dark mode
Dark code
HTML CSS JAVASCRIPT
Fortinet
Application and API Security OPEN
To display an HTML page correctly, the browser must know what character set (encoding) to use:
Example
<meta charset="UTF-8">
This has not always been the case. The character encoding for the early web was ASCII.
Later, from HTML 2.0 to HTML 4.01, ISO-8859-1 was considered as the standard character set.
With XML and HTML5, UTF-8 finally arrived and solved a lot of character encoding problems.
To standardize the storing of text, the American Standard Code for Information Interchange
(ASCII) was created. It defined a unique binary number for each storable character to support the
numbers from 0-9, the upper and lower case alphabet (a-z, A-Z), and special characters like ! $ + - (
)@<>,.
Since ASCII used 7 bits for the character, it could only represent 128 different characters.
Menu Bootcamps Spaces Sign Up Log in
Dark mode
The biggest weakness with ASCII, was that it excluded non English letters.
Dark code
HTML CSS JAVASCRIPT
ASCII is still in use today, especially in large mainframe computer systems.
In Windows: Windows-1252
Windows-1252 was the default character set in Windows, up to Windows 95.
Since Windows-1252 has been the default in Windows, it is supported by all browsers.
ADVERTISEMENT
Fortinet Open
In HTML 4: ISO-8859-1
The character set most often used in HTML 4 was ISO-8859-1.
In HTML 4, a character set different from ISO-8859-1 can be specified in the <meta> tag:
Example
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-
8">
Example
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
Example
<meta Menu
charset="UTF-8">
Bootcamps Spaces Sign Up Log in
Dark mode
Dark code
HTML CSS JAVASCRIPT
A character-set different from UTF-8 can be specified in the <meta> tag:
Example
<meta charset="ISO-8859-1">
The Unicode Consortium developed the UTF-8 and UTF-16 standards, because the ISO-8859
character-sets are limited, and not compatible a multilingual environment.
The Unicode Standard covers (almost) all the characters, punctuations, and symbols in the world.
All HTML5 and XML processors support UTF-8, UTF-16, Windows-1252, and ISO-8859.
❮ Home Next ❯
ADVERTISEMENT
Fortinet
Application and API Security OPEN
Menu Bootcamps Spaces Sign Up Log in
Dark mode
Dark code
HTML CSS JAVASCRIPT
COLOR PICKER
Menu Bootcamps Spaces Sign Up Log in
Dark mode
Dark code
HTML CSS JAVASCRIPT
ADVERTISEMENT
Open
Menu Bootcamps
Spaces
Spaces Sign Up Log in
Dark mode
Dark code
HTML CSS JAVASCRIPT
Upgrade
Newsletter
Get Certified
Report Error
Top Tutorials
HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
W3.CSS Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial
Top References
HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
W3.CSS Reference
Bootstrap Reference
PHP Reference
HTML Colors
Java Reference
Angular Reference
jQuery Reference
Top Examples
HTML Examples
CSS Examples
JavaScript Examples
How To Examples
SQL Examples
Python Examples
W3.CSS Examples
Bootstrap Examples
PHP Examples
Java Examples
XML Examples
Menu Bootcamps
jQuery Examples Spaces Sign Up Log in
Dark mode
Get Certified Dark code
HTML CSS JAVASCRIPT
HTML Certificate
CSS Certificate
JavaScript Certificate
Front End Certificate
SQL Certificate
Python Certificate
PHP Certificate
jQuery Certificate
Java Certificate
C++ Certificate
C# Certificate
XML Certificate
FORUM | ABOUT
W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials,
references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content.
While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.