The TranslateCharsetInfo provides the method to translate values between Windows CharSet, Windows ANSI Codepage and Windows Codepage Subrange Bitfields (CSB). The next tables shows the mapping between them.
┌────────────────────┬──────────┬────────────────────┐ │Windows CharSet │Windows │Windows CSB │ │ │ANSI │ │ │ │Codepage │ │ ├────────────────────┼──────────┼────────────────────┤ │ANSI_CHARSET │1252 │0x0000000000000001 │ ├────────────────────┼──────────┼────────────────────┤ │EASTEUROPE_CHARSET │1250 │0x0000000000000002 │ ├────────────────────┼──────────┼────────────────────┤ │RUSSIAN_CHARSET │1251 │0x0000000000000004 │ ├────────────────────┼──────────┼────────────────────┤ │GREEK_CHARSET │1253 │0x0000000000000008 │ ├────────────────────┼──────────┼────────────────────┤ │TURKISH_CHARSET │1254 │0x0000000000000010 │ ├────────────────────┼──────────┼────────────────────┤ │HEBREW_CHARSET │1255 │0x0000000000000020 │ ├────────────────────┼──────────┼────────────────────┤ │ARABIC_CHARSET │1256 │0x0000000000000040 │ ├────────────────────┼──────────┼────────────────────┤ │BALTIC_CHARSET │1257 │0x0000000000000080 │ ├────────────────────┼──────────┼────────────────────┤ │THAI_CHARSET │874 │0x0000000000010000 │ ├────────────────────┼──────────┼────────────────────┤ │SHIFTJIS_CHARSET │932 │0x0000000000020000 │ ├────────────────────┼──────────┼────────────────────┤ │GB2312_CHARSET │936 │0x0000000000040000 │ ├────────────────────┼──────────┼────────────────────┤ │HANGEUL_CHARSET │949 │0x0000000000080000 │ ├────────────────────┼──────────┼────────────────────┤ │CHINESEBIG5_CHARSET │950 │0x0000000000100000 │ ├────────────────────┼──────────┼────────────────────┤ │JOHAB_CHARSET │1361 │0x0000000000200000 │ └────────────────────┴──────────┴────────────────────┘
Note: TranslateCharsetInfo does not support translating OEM Codepages, OEM CSBs, SYMBOL_CHARSET and OEM_CHARSET. It returns error when requested.