Windows-1251

Windows-1251
MIME / IANAwindows-1251
Alias(es)cp1251 (Code page 1251)
Language(s)Russian, Ukrainian, Belarusian, Bulgarian, Serbian Cyrillic, Bosnian Cyrillic, Macedonian, Rotokas, Rusyn, English
Created byMicrosoft
StandardWHATWG Encoding Standard
Classificationextended ASCII, Windows-125x
Other related encoding(s)Amiga-1251, KZ-1048,
RFC 1345's "ECMA-Cyrillic"

Windows-1251 is an 8-bit character encoding, designed to cover languages that use the Cyrillic script such as Russian, Ukrainian, Belarusian, Bulgarian, Serbian Cyrillic, Macedonian and other languages.

On the web, it is the second most-used single-byte character encoding (or third most-used character encoding overall), and most used of the single-byte encodings supporting Cyrillic. As of January 2024, 0.3% of all websites use Windows-1251.[1][2] It's by far mostly used for Russian, while a small minority of Russian websites use it, with 94.6% of Russian (.ru) websites using UTF-8,[3][4][5] and the legacy 8-bit encoding is distant second. In Linux, the encoding is known as cp1251.[6] IBM uses code page 1251 (CCSID 1251 and euro sign extended CCSID 5347) for Windows-1251.[7][8][9][10][11][12][13]

Windows-1251 and KOI8-R (or its Ukrainian variant KOI8-U) are much more commonly used than ISO 8859-5 (which is used by less than 0.0004% of websites).[14] In contrast to Windows-1252 and ISO 8859-1, Windows-1251 is not closely related to ISO 8859-5.

Unicode (e.g. UTF-8) is preferred to Windows-1251 or other Cyrillic encodings in modern applications, especially on the Internet, making UTF-8 the dominant encoding for web pages. (For further discussion of Unicode's complete coverage, of 436 Cyrillic letters/code points, including for Old Cyrillic, and how single-byte character encodings, such as Windows-1251 and KOI8-R, cannot provide this, see Cyrillic script in Unicode.)

  1. ^ "Historical trends in the usage of character encodings, January 2024". Retrieved 2024-01-01.
  2. ^ "Frequently Asked Questions".
  3. ^ "Distribution of Character Encodings among websites that use .ru". w3techs.com. Retrieved 2024-01-01.
  4. ^ "Distribution of Character Encodings among websites that use Russian". w3techs.com. Retrieved 2023-01-16.
  5. ^ "Distribution of Character Encodings among websites that use Russian Federation". w3techs.com. Retrieved 2021-11-05.
  6. ^ "cp1251(7) - Linux manual page". man7.org. Retrieved 2018-07-01.
  7. ^ "Code page 1251 information document". Archived from the original on 2016-03-03.
  8. ^ "CCSID 1251 information document". Archived from the original on 2014-11-29.
  9. ^ "CCSID 5347 information document". Archived from the original on 2014-11-29.
  10. ^ Code Page CPGID 01251 (pdf) (PDF), IBM
  11. ^ Code Page CPGID 01251 (txt), IBM
  12. ^ International Components for Unicode (ICU), ibm-1251_P100-1995.ucm, 2002-12-03
  13. ^ International Components for Unicode (ICU), ibm-5347_P100-1998.ucm, 2002-12-03
  14. ^ "Usage Statistics of Character Encodings for Websites". w3techs.com. Archived from the original on 2012-05-30.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search