SBCS (Single Byte Character Set) Codepages • 1250 (Central Europe) • 1251 (Cyrillic) • 1252 (Latin I) • 1253 (Greek) • 1254 (Turkish) • 1255 (Hebrew) • 1256 (Arabic) • 1257 (Baltic) • 1258 (Vietnam) • 874 (Thai) Top of page DBCS (Double Byte Character Set) Codepages In these graphical representations, leadbytes are indicated by light gray background shading. Each of these leadbytes hyperlinks to a new page showing the 256 character block associated with that leadbyte. Unused leadbytes are identified by a darker gray background.• 932 (Japanese Shift-JIS) • 936 (Simplified Chinese GBK) • 949 (Korean) • 950 (Traditional Chinese Big5)
看看这个。貌似有你需要的东西,呵呵
• 1250 (Central Europe)
• 1251 (Cyrillic)
• 1252 (Latin I)
• 1253 (Greek)
• 1254 (Turkish)
• 1255 (Hebrew)
• 1256 (Arabic)
• 1257 (Baltic)
• 1258 (Vietnam)
• 874 (Thai) Top of page
DBCS (Double Byte Character Set) Codepages
In these graphical representations, leadbytes are indicated by light gray background shading. Each of these leadbytes hyperlinks to a new page showing the 256 character block associated with that leadbyte. Unused leadbytes are identified by a darker gray background.• 932 (Japanese Shift-JIS)
• 936 (Simplified Chinese GBK)
• 949 (Korean)
• 950 (Traditional Chinese Big5)
#include <stdio.h>
BOOL CALLBACK EnumCodePagesProc(LPTSTR szCodePageString)
{
long nCodePage = _ttoi(szCodePageString); CPINFOEX stInfo;
if (GetCPInfoEx(nCodePage, 0, &stInfo))
{
printf("%d: %S\n", nCodePage, stInfo.CodePageName); // stInfo.CodePageName is unicode
} return TRUE;
}int _tmain(int argc, _TCHAR* argv[])
{
EnumSystemCodePages(EnumCodePagesProc, CP_INSTALLED); return 0;
}
by the way: 三楼的代码我在VC6.0控制台下运行要加上#include <tchar.h>