2.11. lf.win.codepage.consts — Code page constants

Microsoft Windows defines several code page constants. For convenience, those constants have been defined in this module. In addition, the code_page_names attribute contains a mapping between the constant values and the Python codecs encoding name.

lf.win.codepage.consts.code_page_names
A dictionary mapping Microsoft Windows OEM code page values to their equivalent codecs encoding name.
lf.win.codepage.consts.CP_UNKNOWN
Constant when the code page is unknown.

2.11.1. Windows OEM code pages

lf.win.codepage.consts.CP_WINUNICODE
Constant for Windows Unicode (16-bit little endian).
lf.win.codepage.consts.CP_OEM_437
Constant for code page 437 (US).
lf.win.codepage.consts.CP_OEM_720
Constant for code page 720 (Arabic).
lf.win.codepage.consts.CP_OEM_737
Constant for code page 737 (Greek).
lf.win.codepage.consts.CP_OEM_775
Constant for code page 775 (Baltic).
lf.win.codepage.consts.CP_OEM_850
Constant for code page 850 (Multilingual Latin I).
lf.win.codepage.consts.CP_OEM_852
Constant for code page 852 (Latin II).
lf.win.codepage.consts.CP_OEM_855
Constant for code page 855 (Cyrillic).
lf.win.codepage.consts.CP_OEM_857
Constant for code page 857 (Turkish).
lf.win.codepage.consts.CP_OEM_858
Constant for code page 858 (Mulitlingual Latin I + Euro).
lf.win.codepage.consts.CP_OEM_862
Constant for code page 862 (Hebrew).
lf.win.codepage.consts.CP_OEM_866
Constant for code page 866 (Russian).

2.11.2. Windows OEM and ANSI code pages

lf.win.codepage.consts.CP_WINDOWS_874
Constant for code page 874 (Thai).
lf.win.codepage.consts.CP_WINDOWS_932
Constant for code page 932 (Japanese Shift-JIS).
lf.win.codepage.consts.CP_WINDOWS_936
Constant for code page 936 (Simplified Chinese GBK).
lf.win.codepage.consts.CP_WINDOWS_949
Constant for code page 949 (Korean).
lf.win.codepage.consts.CP_WINDOWS_950
Constant for code page 950 (Traditional Chinese Big5).
lf.win.codepage.consts.CP_WINDOWS_1258
Constant for code page 1258 (Vietnam).

2.11.3. Single Byte Character Set code pages (SBCS)

In addition to the code page constants listed below, the constants CP_WINDOWS_874 and CP_WINDOWS_1258 are also single byte character sets.

lf.win.codepage.consts.CP_WINDOWS_1250
Constant for code page 1250 (Central Europe).
lf.win.codepage.consts.CP_WINDOWS_1251
Constant for code page 1251 (Cyrillic).
lf.win.codepage.consts.CP_WINDOWS_1252
Constant for code page 1252 (Latin I).
lf.win.codepage.consts.CP_WINDOWS_1253
Constant for code page 1253 (Greek).
lf.win.codepage.consts.CP_WINDOWS_1254
Constant for code page 1254 (Turkish).
lf.win.codepage.consts.CP_WINDOWS_1255
Constant for code page 1255 (Hebrew).
lf.win.codepage.consts.CP_WINDOWS_1256
Constant for code page 1256 (Arabic).
lf.win.codepage.consts.CP_WINDOWS_1257
Constant for code page 1257 (Baltic).
lf.win.codepage.consts.CP_WINDOWS_UTF8
Constant for code page 1258 (UTF-8)

2.11.4. Double Byte Character Set code pages (DBCS)

2.11.5. ISO 88559 code pages

lf.win.codepage.consts.CP_ISO_8859_1
Constant for code page ISO-8859-1 (Latin 1).
lf.win.codepage.consts.CP_ISO_8859_2
Constant for code page ISO-8859-2 (Latin 2).
lf.win.codepage.consts.CP_ISO_8859_3
Constant for code page ISO-8859-3 (Latin 3).
lf.win.codepage.consts.CP_ISO_8859_4
Constant for code page ISO-8859-4 (Baltic).
lf.win.codepage.consts.CP_ISO_8859_5
Constant for code page ISO-8859-5 (Cyrillic).
lf.win.codepage.consts.CP_ISO_8859_6
Constant for code page ISO-8859-6 (Arabic).
lf.win.codepage.consts.CP_ISO_8859_8
Constant for code page ISO-8859-8 (Hebrew).
lf.win.codepage.consts.CP_ISO_8859_9
Constant for code page ISO-8859-9 (Turkish).
lf.win.codepage.consts.CP_ISO_8859_15
Constant for code page ISO-8859-15 (Latin 9).