Puneet Varma (Editor)

Mazovia encoding

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

Mazovia encoding is used under DOS to represent Polish texts. Basically it is code page 437 with some positions filled with Polish letters. An important feature was that the block graphic characters of code page 437 remained unchanged. In contrast, IBM's official Central-European code page 852 did not preserve all block graphics, causing incorrect display in programs such as Norton Commander.

The Mazovia encoding was designed in 1984 by Jan Klimowicz of IMM. It was designed as part of a project to develop and produce a Polish IBM PC clone codenamed "Mazovia 1016". The code page was therefore optimized for that computer's typical peripheral devices, a graphics card with dual switchable graphics, a keyboard using US English and Russian layouts and printers with Polish fonts. In 1986, the Polish National Bank (NBP) adopted the Mazovia encoding as a standard, thereby causing its widespread acceptance and distribution in Poland. They also were instrumental in Ipaco producing compatible computers with Taiwanese components under the direction of Zbigniew Jakubas 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 the original Mazovia encoding under code page 790 (CP790) as well. The Fujitsu DL6400 (Pro) / DL6600 (Pro) printers support the Mazovia encoding as well.

Code page layout

Each character is shown with its equivalent Unicode code point and its decimal 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 ASCII and code page 437. Code points 128–133, 135–140, 142, 147–148, 150–151, 153–155, 157, 159, 162, 168–255 are identical to code page 437 as well.

Several variants of this encoding exists:

  • Mazovia 157 (ś is at code point 157 instead of 158)
  • Fido Mazovia (ć is at code point 135 instead of 141 and Ć is at code point 128 instead of 149)
  • FreeDOS Mazovia (złoty sign at code point 155). FreeDOS supports this variant under code page 991, although the original definition of code page 991, which pre-dates FreeDOS, appears to have been identical to code page 667 / 790.
  • These variants are not fully compliant with the definition of code page 667 / 790 and should therefore not be associated with these numbers.

    Differences from code page 437 have a black border, code points used for multiple purposes in code page 437 are shaded.

    References

    Mazovia encoding Wikipedia