The Table below lists the codes of currently used non-Unicode (ASCII-like) Character Sets and their Code Pages.
Of course, we should all be using the Unicode, so that the one and only charset specification we should use is utf-8, the Unicode Transfromation Format -8. Which, just as of course, most of us know very little about. I, for one, am quite ready for a triple 6-month shift of onion peeling in a submarine, the punishment invented by Joel Spolsky for those who are not up to current standards.
The charset specification is used - or should be used - by anybody writing HTML documents. It appears as a <META ... > entry in the <HEAD>...</HEAD> section of the HTML script. I usually place it as the first entry in the header but the order should be actually irrelevant. Here is an example of such an entry:
<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
The case (upper/lower characters) of the content string should be also irrelevant so that writing Windows-1252 or windows-1252 should be equivalent in all browsers (the reason why I use the conditional is that I did not have the opportunity to test this aspect in all possible browsers). I use consistently lower case.
When you do not specify the charset within a HTML document, the browser will use the current default of your computer. Which, of course, need not be the same in the whole world. The result is that everything looks fine when you display the document on your computer but when somebody displays it in another country it may look as complete garbage!!!
Extended CharSet name
|Central European (ISO)
||Czechs like this for Czech|
|Central European (Windows)
||I prefer this for Czech texts|
|Chinese Simplified (GB2312)
|Chinese Simplified (HZ)
|Chinese Traditional (Big5)
|Latin 3 (ISO)
|Latin 9 (ISO)
|Western European (ISO)
||ISO for English texts|
|Western European (Windows)
||I prefer this for English/Italian|
The Code-Page identifiers are rarely used by anybody but those programmers who interfere with Operating Systems and/or write boot-up scripts for DOS, UNIX, LINUX and the like. Most of us commoners do not havy any use for them.
The following Table is for those who would nevertheless like to know more about them. It shows the code-pages supported by the Windows API functions GetACP, GetOEMCP and GetCPInfo.
Identifiers of ANSI character pages
|936||Chinese (PRC, Singapore)|
|950||Chinese (Taiwan, Hong Kong)|
|1200||Unicode (BMP of ISO 10646)|
|1250||Windows Eastern European|
|1252||Windows Latin 1 (US, Western Europe)|
Identifiers of OEM character pages
|437||MS-DOS United States|
|708||Arabic (ASMO 708)|
|709||Arabic (ASMO 449+, BCON V4)|
|710||Arabic (Transparent Arabic)|
|720||Arabic (Transparent ASMO)|
|737||Greek (formerly 437G)|
|850||MS-DOS Multilingual (Latin I)|
|852||MS-DOS Slavic (Latin II)|
|855||BM Cyrillic (primarily Russian)|
|869||IBM Modern Greek|
|1361||Korean (Johab)|| |