CP1252



         


ISO 8859-1, more formally cited as ISO/IEC 8859-1 or less formally as Latin-1, is part 1 of ISO/IEC 8859, a standard character encoding defined by ISO. It encodes what it refers to as Latin alphabet no. 1, consisting of 191 characters from the Latin script, each encoded as a single 8-bit code value. These code values can be used in almost any data interchange system to communicate in the following European languages (with the exception of correct quotation marks and apostrophe for many of them): Albanian, Basque, Catalan, Danish, Dutch, English, Faroese,French (missing only œ), Finnish, German, Icelandic (missing „ and “), Irish, Italian, Norwegian, Portuguese, Rhaeto-Romanic, Scottish, Spanish, Swedish. Other languages covered include Afrikaans and Swahili. Thus, this character encoding is used throughout the American continent, Western Europe, Australia, and much of Africa.

[Top]

ISO/IEC 8859-1

ISO/IEC 8859-1 suffers from a number of deficiencies, including the omission of a few French and Finnish letters and the lack of a Euro symbol. For this reason, ISO/IEC 8859-15 has been developed as an update of ISO/IEC 8859-1 to add the required additional characters. (This required however the removal of some less used characters from ISO/IEC 8859-1, including fraction symbols and letter-free diacritics: ¤, ¦, ¨, ´, ¸, ¼, ½, and ¾.) Since all 191 characters encoded by ISO/IEC 8859-1 are graphic and compatible with most web browsers, they can be shown as glyphs in the following table. Since they would not normally be visible, the space character, the no-break space character, and the soft hyphen character are represented by abbreviations for their names. All other characters are represented literally. In the table, the row and column headings indicate the hexadecimal digit combinations to produce the 8-bit code value; e.g., "L" is hex 4C, or binary 01001100.

ISO/IEC 8859-1
x0x1x2x3x4x5x6x7x8x9xAxBxCxDxExF
0xunused
1x
2xSP!"#$%&'()*+,-./
3x 0 123456789:;<=>?
4x@ABCDEFGHIJKLMNO
5xPQRSTUVWXYZ[\]^_
6x`abcdefghijklmno
7xpqrstuvwxyz{|}~
8xunused
9x
Ax NBSP ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ SHY ® ¯
Bx ° ± ² ³ ´ µ · ¸ ¹ º » ¼ ½ ¾ ¿
CxÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ
DxÐÑÒÓÔÕÖרÙÚÛÜÝÞß
Exàáâãäåæçèéêëìíîï
Fxðñòóôõö÷øùúûüýþÿ

Code values 00-1F, 7F, and 80-9F are not assigned to characters by ISO/IEC 8859-1.

[Top]

ISO 8859-1 vs ISO-8859-1

The IANA has approved ISO-8859-1 (note the extra hyphen), a superset of ISO/IEC 8859-1, for use on the Internet. This character map, or character set or code page, supplements the assignments made by ISO/IEC 8859-1, mapping control characters to code values 00-1F, 7F, and 80-9F. It thus provides for 256 characters via every possible 8-bit value. The IANA allows all of the following aliases for ISO-8859-1 to be used case-insensitively:

The name Latin-1 is an informal alias unrecognized by ISO or the IANA, but is perhaps meaningful in some computer software. The following table shows the ISO-8859-1 character map. Control characters, the space character, the no-break space character, and the soft hyphen character are represented by 2-, 3-, or 4-letter abbreviations for their names. All other characters are represented literally.

ISO-8859-1
x0x1x2x3x4x5x6x7x8x9xAxBxCxDxExF
0xNULSOHSTXETXEOTENQACKBELBSTABLFVTFFCRSOSI
1xDLEDC1DC2DC3DC4NAKSYNETBCANEMSUBESCFSGSRSUS
2xSP!"#$%&'()*+,-./
3x0123456789:;<=>?
4x@ABCDEFGHIJKLMNO
5xPQRSTUVWXYZ[\]^_
6x`abcdefghijklmno
7xpqrstuvwxyz{|}~DEL
8xPADHOPBPHNBHINDNELSSAESAHTSHTJVTSPLDPLURISS2SS3
9xDCSPU1PU2STSCCHMWSPAEPASOSSGCISCICSISTOSCPMAPC
AxNBSP¡¢£¤¥¦§¨©ª«¬SHY®¯
Bx°±²³´µ·¸¹º»¼½¾¿
CxÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ
DxÐÑÒÓÔÕÖרÙÚÛÜÝÞß
Exàáâãäåæçèéêëìíîï
Fxðñòóôõö÷øùúûüýþÿ

There are additional parts to the ISO/IEC 8859 standard that have corresponding IANA-approved character maps, e.g. ISO/IEC 8859-10 (Latin alphabet no. 6) is very similar to character map ISO-8859-10. Each of the ISO/IEC 8859-x parts encodes characters in the same way: they cover the ASCII range (hex 20-7E) plus 96 additional characters in the A0-FF range, for a total of 191 characters. The ISO-8859-x maps each add the ISO 646 C0 "control" characters from 00-1F, a control character at 7F, and control characters in the 80-9F range, thus encompassing a total of 256 characters. ISO-8859-1 is unique among these maps in that that its coded characters are equivalent to the first 256 code points of Unicode. ISO-8859-1 is the standard encoding used by the X Window System on most Unix machines.

[Top]

Windows-1252

The legacy components of Microsoft Windows use, by default, an encoding that is a superset of ISO/IEC 8859-1, but differs from ISO-8859-1, using displayable characters rather than control characters in the 80-9F range. Windows calls it ANSI generically, but depending on where the operating system was sold, the character set will have another name, e.g. CP1252 in the US and Western European markets, with the IANA-approved name Windows-1252. The following table shows Windows-1252, with changes from ISO-8859-1 highlighted:

Windows-1252 (CP1252)
x0x1x2x3x4x5x6x7x8x9xAxBxCxDxExF
0xNULSOHSTXETXEOTENQACKBELBSTABLFVTFFCRSOSI
1xDLEDC1DC2DC3DC4NAKSYNETBCANEMSUBESCFSGSRSUS
2xSP!"#$%&'()*+,-./
3x0123456789:;<=>?
4x@ABCDEFGHIJKLMNO
5xPQRSTUVWXYZ[\]^_
6x`abcdefghijklmno
7xpqrstuvwxyz{|}~DEL
8x ƒˆŠŒ Ž 
9x  ˜šœ žŸ
Ax NBSP ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ SHY ® ¯
Bx ° ± ² ³ ´ µ · ¸ ¹ º » ¼ ½ ¾ ¿
CxÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ
DxÐÑÒÓÔÕÖרÙÚÛÜÝÞß
Exàáâãäåæçèéêëìíîï
Fxðñòóôõö÷øùúûüýþÿ

In Windows-1252, positions 81, 8D, 8F, 90, and 9D are unused. The Euro character at position 80 was not present in earlier versions of this code page.

[Top]

MacRoman

Older Apple Macintosh computers use an encoding, Mac-Roman, that differs from ISO 8859-1 in the first 32 and beyond the first 127 characters, but does include all characters present in ISO 8859-1 at other locations, with the exception of the soft hyphen. In contrast MacRoman includes multiple characters which are not in ISO 8859-1. The Euro glyph replaced the previous generic currency sign. The following table shows MacRoman, with the differences from ISO-8859-1 highlighted:

<;th>8x
MacRoman
x0x1x2x3x4x5x6x7x8x9xAxBxCxDxExF
0x         TABLF  CR  
1x                
2xSP!"#$%&'()*+,-./
3x0123456789:;<=>?
4x@ABCDEFGHIJKLMNO
5xPQRSTUVWXYZ[\]^_
6x`abcdefghijklmno
7xpqrstuvwxyz{|}~ 
ÄÅÇÉÑÖÜáàâäãåçéè
9x êëíìîïñóòôöõúùûü
Ax °¢£§ß®©´¨ÆØ
Bx ±¥µπªºΩæø
Cx ¿¡¬ƒ«»NBSPÀÃÕŒœ
Dx ÷ÿŸ
Ex ·ÂÊÁËÈÍÎÏÌÓÔ
Fx ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ

In the table above, 20 is the regular SPACE character, and CA is the NO-BREAK SPACE. F0 is a glyph depicting the Apple logo. This character does not exist in Unicode and therefore is remapped in the Private Use Area. If your user agent displays anything there it may or may not be the Apple Computer logo. 00–08, 0B and 0C, 0E–1F and 7F are unused. The distinction between ISO 8859-1, ISO-8859-1, Windows-1252, and MacRoman is a common source of confusion among computer programmers.

[Top]




  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License