CodePage v0.1.0

Source
Identifies a Windows character encoding.

Package: Windows

Microsoft documentation: Code page identifiers

enum CodePage: uint32

The enum exposes the Windows code-page identifiers accepted by MultiByteToWideChar and WideCharToMultiByte. Common members are:

MemberValueEncoding
Utf865001UTF-8.
Utf765000UTF-7; avoid for new data.
Utf16Le1200UTF-16 little-endian.
Utf16Be1201UTF-16 big-endian.
Utf32Le12000UTF-32 little-endian.
Utf32Be12001UTF-32 big-endian.
UsAscii201277-bit US ASCII.
Windows12501250Windows Central European.
Windows12511251Windows Cyrillic.
Windows12521252Windows Western European.
ShiftJis932Japanese Shift-JIS.
Gb2312936Simplified Chinese.
KsC5601949Korean.
Big5950Traditional Chinese.
Gb1803054936GB18030 Simplified Chinese.

The enum also includes the OEM, EBCDIC, Macintosh, ISO-8859, ISO-2022, EUC, KOI8, ISCII, and legacy East Asian identifiers declared by Windows. Prefer CodePage.Utf8 for new interoperable text.

A code-page identifier does not make an A-suffixed API UTF-8. Those APIs use the process ANSI conventions. Convert explicitly when Unicode correctness is required.