Code page 866

From Wikipedia, the free encyclopedia
Code page 866
Octets in conformant CP866 ordered by nibbles.png
MIME / IANAIBM866
Alias(es)cp866, 866[1]
Language(s)Russian, Bulgarian;
Partial support:
Ukrainian,[a] Belarusian[b]
StandardWHATWG Encoding Standard
ClassificationOEM code page, extended ASCII
ExtendsUS-ASCII
Based onAlternative code page
Other related encoding(s)(See below)

Code page 866 (CCSID 866)[2] (CP 866, "DOS Cyrillic Russian")[3] is a code page used under DOS and OS/2[4] in Russia to write Cyrillic script.[5][6] It is based on the "alternative code page" (Russian: Альтернативная кодировка) developed in 1984 in IHNA AS USSR and published in 1986 by a research group at the Academy of Science of the USSR.[7] The code page was widely used during the DOS era because it preserves all of the pseudographic symbols of code page 437 (unlike the "Main code page" or Code page 855) and maintains alphabetic order (although non-contiguously) of Cyrillic letters (unlike KOI8-R). Initially, this encoding was only available in the Russian version of MS-DOS 4.01 (1990) and since MS-DOS 6.22 in any language version.

The WHATWG Encoding Standard, which specifies the character encodings permitted in HTML5 which compliant browsers must support,[8] includes Code page 866.[9] It is the only single-byte encoding listed which is not named as an ISO 8859 part, Mac OS specific encoding, Microsoft Windows specific encoding (Windows-874 or Windows-125x) or KOI-8 variant.[9] Authors of new pages and the designers of new protocols are instructed to use UTF-8 instead.[10]

Not identical, but two very similar encodings are standardised in GOST R 34.303-92[11] as KOI-8 N1 and KOI-8 N2 (not to be confused with the original KOI-8).

Character set[]

Each character is shown with its equivalent Unicode code point. Only the second half of the table (code points 128–255) is shown, the first half (code points 0–127) being the same as code page 437.

Code page 866[12][5][3][13][14][15] [16]
0 1 2 3 4 5 6 7 8 9 A B C D E F
8x А Б В Г Д Е Ж З И Й К Л М Н О П
9x Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я
Ax а б в г д е ж з и й к л м н о п
Bx
Cx
Dx
Ex р с т у ф х ц ч ш щ ъ ы ь э ю я
Fx Ё ё Є є Ї ї Ў ў ° · ¤ NBSP

Variants[]

There existed a few variants of the code page, but the differences were mostly in the last 16 code points (240–255).

Alternative code page[]

The original version of the code page by Bryabrin et al. (1986)[7] is called the "Alternative code page" (Russian: Альтернативная кодировка), to distinguish it from the "Main code page" (Russian: Основная кодировка) by the same authors. It supports only Russian and Bulgarian. It is mostly the same as code page 866, except for codes F2hex through F7hex (which code page 866 changes to Ukrainian and Belarusian letters) and codes F8hex through FBhex (where code page 866 matches code page 437 instead). The differing row is shown below.

Alternative code page[17]
0 1 2 3 4 5 6 7 8 9 A B C D E F
Fx Ё ё WIKI