Windows-1258 Explained

Windows-1258
Mime:windows-1258
Alias:cp1258 (Code page 1258)
By:Microsoft
Standard:WHATWG Encoding Standard
Lang:Vietnamese, English, French, German, Spanish, Danish, Norwegian, Swedish, Finnish, Irish, Albanian, Luxembourgish, Dutch.
With combining diacritics:
Estonian, Italian, Portuguese, Yoruba, Guarani, Igbo, Nauruan, Devanagari transliteration.
Basedon:Windows-1252
Classification:extended ASCII, Windows-125x

Windows-1258 is a code page used in Microsoft Windows to represent Vietnamese texts. It makes use of combining diacritical marks.

Windows-1258 is compatible with neither the Vietnamese standard (TCVN 5712 / VSCII), nor the various other encodings in use in practice (VISCII, VNI, VPS). Rather, it is very similar to Windows-1252, with the differences being that s-caron and z-caron (which were added to Windows-1252 later) are missing, five of the letters with diacritics have been replaced by combining diacritics for Vietnamese tone marks, one has been replaced with the đông sign, and eight others (four per case) have been changed to four otherwise-unsupported Vietnamese letters.

Use of combining diacritics means that Windows-1258 can cover the large number of combinations of letters and tone marks in Vietnamese without compromising coverage of control codes or symbols. However it also means that software must be careful to handle conversions between precomposed characters and combining sequences correctly when converting to/from other encodings and makes determining user-visible length of a string more difficult.

IBM uses code page 1258 (CCSID 1258 and euro sign extended CCSID 5354) for Windows-1258.[1] [2] [3]

UTF-8 is the preferred encoding for Vietnamese in modern applications. Windows-1258 may not always round-trip Unicode encoded Vietnamese due to changes caused by Unicode normalization.[4] Combining diacritics are encoded after the letter in both Windows-1258 and Unicode (like VNI, unlike ANSEL).

Character set

The following table shows Windows-1258. Each character is shown with its Unicode equivalent.

Code page 1129

IBM's code page 1129 (CCSID 1129 and euro sign extended CCSID 1163)[5] [6] [7] is similar to code page 1258, but with the following differences:

See also

External links

Notes and References

  1. Web site: Code page 1258 information document. https://web.archive.org/web/20160303213408/http://www-01.ibm.com/software/globalization/cp/cp01258.html. 2016-03-03.
  2. Web site: CCSID 1258 information document. https://web.archive.org/web/20141129211140/http://www-01.ibm.com/software/globalization/ccsid/ccsid1258.html. 2014-11-29.
  3. Web site: CCSID 5354 information document. https://web.archive.org/web/20141129224353/http://www-01.ibm.com/software/globalization/ccsid/ccsid5354.html. 2014-11-29.
  4. Web site: A few of the gotchas of MultiByteToWideChar . Sorting it all out . Kaplan . Michael S. . 2005-04-19.
  5. Web site: Code page 1129 information document. https://web.archive.org/web/20100921000629/http://www-01.ibm.com/software/globalization/cp/cp01129.html. 2010-09-21.
  6. Web site: CCSID 1129 information document. https://web.archive.org/web/20160327161405/http://www-01.ibm.com/software/globalization/ccsid/ccsid1129.html. 2016-03-27.
  7. Web site: CCSID 1163 information document. https://web.archive.org/web/20141129225256/http://www-01.ibm.com/software/globalization/ccsid/ccsid1163.html. 2014-11-29.