Product Code Database
Example Keywords: data and -the $89-121
   » » Wiki: Windows-1252
Tag Wiki 'Windows-1252'.

Windows-1252 or CP-1252 ( 1252) is a 1 byte character encoding of the , used by default in the components of Microsoft Windows in English and some other Western languages (other languages use different default encodings).

It is probably the most-used 8-bit character encoding in the world. , 0.7% of all web sites declared use of Windows-1252, but at the same time 4.1% used ISO 8859-1, which by HTML5 standards should be considered the same encoding, so that 4.8% of web sites effectively used Windows-1252. In addition most web browsers will correctly render it if encountered in text that claims to be UTF-8, so its actual usage may be higher.

This character encoding is a of ISO 8859-1 in terms of printable characters, but differs from the IANA's ISO-8859-1 by using displayable characters rather than control characters in the 80 to 9F () range. Notable additional characters include and all the printable characters that are in ISO 8859-15 (at different places than ISO 8859-15). It is known to Windows by the code page number 1252, and by the IANA-approved name "windows-1252".

It is very common to mislabel Windows-1252 text with the charset label ISO-8859-1. A common result was that all the quotes and apostrophes (produced by "smart quotes" in word-processing software) were replaced with question marks or boxes on non-Windows operating systems, making text difficult to read. Most modern web browsers and e-mail clients treat the charset ISO-8859-1 as Windows-1252 to accommodate such mislabeling. This is now standard behavior in the HTML5 specification, which requires that documents advertised as ISO-8859-1 actually be parsed with the Windows-1252 encoding.

Historically, the phrase "ANSI Code Page" was used in Windows to refer to non-DOS encodings; the intention was that most of these would be standards such as ISO-8859-1. Even though Windows-1252 was the first and by far most popular code page named so in Microsoft Windows parlance, the code page has never been an ANSI standard. Microsoft explains, "The term ANSI as used to signify Windows code pages is a historical reference, but is nowadays a misnomer that continues to persist in the Windows community."

In packages, CP-1252 is referred to as "ansinew".

Character set
The following table shows Windows-1252. Each character is shown with its equivalent and its decimal code. Conversions to Unicode are based on the mapping of Windows-1252 with "best fit".

According to the information on Microsoft's and the Unicode Consortium's websites, positions 81, 8D, 8F, 90, and 9D are unused; however, the Windows API [ MultiByteToWideChar] maps these to the corresponding C1 control codes. The "best fit" mapping documents this behavior, too.

  • The first version of the codepage 1252 used in Microsoft Windows 1.0 did not have positions D7 and F7 defined. All the characters in the ranges 80-9F were undefined too.
  • The second version, used in Microsoft Windows 2.0, positions D7, F7, 91, and 92 had been defined.
  • The third version, used since Microsoft Windows 3.1, had all the present-day positions defined, except and Z with caron character pair.
  • The final version listed above debuted in Microsoft Windows 98 and was ported to older versions of Windows with the Euro symbol update.

See also
  • Western Latin character sets (computing)
  • Windows-1250

Further reading
  • (Used by OS/2)

External links

Page 1 of 1
Page 1 of 1


Pages:  ..   .. 
Items:  .. 


General: Atom Feed Atom Feed  .. 
Help:  ..   .. 
Category:  ..   .. 
Media:  ..   .. 
Posts:  ..   ..   .. 


Page:  .. 
Summary:  .. 
1 Tags
10/10 Page Rank
5 Page Refs