Lably
Skip to content

Windows-1252

Windows character set for Latin alphabet

  • 4 min read
  • 4 chapters

Related on Lably

Through Character encoding, Microsoft Windows and Americas

Initially the same as ISO 8859-1, it began to diverge starting in Windows 2.0 by adding additional characters in the 0x80 to 0x9F (hex) range (the ISO standards reserve this range for C1 control codes). Notable additional characters include curly quotation marks and all printable characters from ISO 8859-15.

It is the most-used single-byte character encoding in the world. As of September 2026 (effectively) 9.3% of static web pages are served as Windows-1252 (and even more used of some subtypes or categories, see below). This contrasts a lot with only 0.2% of all websites declared using Windows-1252 even when adding the 0.8% declared to use ISO 8859-1, which is treated as Windows-1252 by all modern browsers (as required by the HTML5 standard), for a total of 1.0%, explained by the fact most web sites are served programmatically and/or usually with a mix of static pages. Almost all websites now use the multi-byte character encoding UTF-8, another superset of ASCII. Some countries or languages show a higher usage than the global average, in 2026 Brazil according to website use, use is at 1.4%, and in Germany at 2.1%. (these are the sums of ISO-8859-1 and CP-1252 declarations).

HTML5 is the latest standard that almost all web pages use, but regarding older standards: 6.0% of HTML Transitional web pages use Windows-1252 (HTML Transitional is used by 2.9% of all the websites). For the obsolete and little used frameset site element using websites (0.2% of all), 12.8% use Windows-1252. So it can be said that these legacy encodings are more used with older technology, and HTML5 mostly eliminate their use, and pre-HTML5-based HTML Transitional and HTML Strict.

Name

It is known to Windows by the code page number 1252, and by the IANA-approved name "windows-1252".

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 ANSI 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."

LaTeX can input Windows-1252 by using inputenc.sty with parameter ansinew (and more recently cp1252).

IBM uses code page 1252 (CCSID 1252 and euro sign extended CCSID 5348) for Windows-1252.

It is called "WE8MSWIN1252" by Oracle Database.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and communication