# Mazovia encoding

Mazovia encoding is a character set used under DOS to represent Polish text. The character set derives from code page 437, with specific positions modified to accommodate Polish letters. Notably, the Mazovia encoding maintains the block graphic characters from code page 437, distinguishing it from IBM's later official Central European code page 852, which failed to preserve all block graphics, leading to incorrect display in programs such as Norton Commander.
The Mazovia encoding was designed in 1984 by Jan Klimowicz of IMM [pl]. It was designed as part of a project to develop and produce a Polish IBM PC clone codenamed "Mazovia 1016 [pl]". The code page was specifically optimized for the peripheral devices commonly used with the Mazovia 1016 computer, including a graphics card with dual switchable graphics, a keyboard with US English and Russian layouts, and printers with Polish fonts. The Mazovia encoding gained widespread acceptance and distribution in Poland when the Polish National Bank (NBP) adopted it as a standard in 1986. The NBP played a significant role in facilitating the production of compatible computers by Ipaco, which utilized Taiwanese components under the guidance of Zbigniew Jakubas [pl] and Krzysztof Sochacki.
Some ambiguity exists in the official code page assignment for the Mazovia encoding:
PTS-DOS and S/DOS support this encoding under code page 667 (CP667). The same encoding was also called code page 991 (CP991) in some Polish software, however, the FreeDOS implementation of code page 991 seems not to be identical to this original encoding. The DOS code page switching file NECPINW.CPI for NEC Pinwriters supports the Mazovia encoding under both code pages 667 and 991. FreeDOS has meanwhile introduced support for a variant of the Mazovia encoding under code page 790 (CP790) as well. The Fujitsu DL6400 (Pro) / DL6600 (Pro) printers support the Mazovia encoding as well. This encoding is known as code page 3843 in Star printers.

## Character set

Each character is shown with its equivalent Unicode code point. Only the second half of the table (128–255) is shown, all of the first half (0–127) being the same as ASCII and code page 437.
Several variants of this encoding exists:
* Mazovia with curly quotation marks („ is at 9D and ” is at A9). FreeDOS supports this variant under code page 790.
* Mazovia 157 (ś is at 9D instead of 9E)
* Fido Mazovia (ć is at 0x87 instead of 8D and Ć is at 0x80 instead of 0x95)
* zł Mazovia (złoty sign at 0x9B, like in the original ROM of the Mazovia 1016 computer). This variant was also supported by EGAPL v3.2, a DOS TSR providing polish glyphs that was popular in Poland in the 90's. FreeDOS supports this variant under code page 991 (which also has § (section sign) at 0xA8), although the original definition of code page 991, which pre-dates FreeDOS, appears to have been identical to code page 667.
These variants are not fully compliant with the definition of code page 667 and should therefore not be associated with this number.
Code page 667 :
| | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
| 8x 128 | Ç 00C7 | ü 00FC | é 00E9 | â 00E2 | ä 00E4 | à 00E0 | ą 0105 | ç 00E7 | ê 00EA | ë 00EB | è 00E8 | ï 00EF | î 00EE | ć 0107 | Ä 00C4 | Ą 0104 |
| 9x 144 | Ę 0118 | ę 0119 | ł 0142 | ô 00F4 | ö 00F6 | Ć 0106 | û 00FB | ù 00F9 | Ś 015A | Ö 00D6 | Ü 00DC | ¢ 00A2 | Ł 0141 | ¥ 00A5 | ś 015B | ƒ 0192 |
| Ax 160 | Ź 0179 | Ż 017B | ó 00F3 | Ó 00D3 | ń 0144 | Ń 0143 | ź 017A | ż 017C | ¿ 00BF | ⌐ 2310 | ¬ 00AC | ½ 00BD | ¼ 00BC | ¡ 00A1 | « 00AB | » 00BB |
| Bx 176 | ░ 2591 | ▒ 2592 | ▓ 2593 | │ 2502 | ┤ 2524 | ╡ 2561 | ╢ 2562 | ╖ 2556 | ╕ 2555 | ╣ 2563 | ║ 2551 | ╗ 2557 | ╝ 255D | ╜ 255C | ╛ 255B | ┐ 2510 |
| Cx 192 | └ 2514 | ┴ 2534 | ┬ 252C | ├ 251C | ─ 2500 | ┼ 253C | ╞ 255E | ╟ 255F | ╚ 255A | ╔ 2554 | ╩ 2569 | ╦ 2566 | ╠ 2560 | ═ 2550 | ╬ 256C | ╧ 2567 |
| Dx 208 | ╨ 2568 | ╤ 2564 | ╥ 2565 | ╙ 2559 | ╘ 2558 | ╒ 2552 | ╓ 2553 | ╫ 256B | ╪ 256A | ┘ 2518 | ┌ 250C | █ 2588 | ▄ 2584 | ▌ 258C | ▐ 2590 | ▀ 2580 |
| Ex 224 | α 03B1 | ß 00DF | Γ 0393 | π 03C0 | Σ 03A3 | σ 03C3 | µ 00B5 | τ 03C4 | Φ 03A6 | Θ 0398 | Ω 03A9 | δ 03B4 | ∞ 221E | φ 03C6 | ε 03B5 | ∩ 2229 |
| Fx 240 | ≡ 2261 | ± 00B1 | ≥ 2265 | ≤ 2264 | ⌠ 2320 | ⌡ 2321 | ÷ 00F7 | ≈ 2248 | ° 00B0 | ∙ 2219 | · 00B7 | √ 221A | ⁿ 207F | ² 00B2 | ■ 25A0 | NBSP |