我是做MFC的,要涉及到德语,西班牙语,意大利语,日语等10多个语种,请问哪里有Codepage的详细对应表?MSDN有吗?我找了很久没找到那位达人帮帮我啊~~~

解决方案 »

  1.   

    http://blog.csdn.net/the3gwireless/archive/2007/08/07/1730057.aspx
    看看这个。貌似有你需要的东西,呵呵
      

  2.   

    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) 
      

  3.   

    枚举code page#include <windows.h>
    #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;
    }
      

  4.   

    嗯,很好,谢谢三位 :)
    by the way: 三楼的代码我在VC6.0控制台下运行要加上#include <tchar.h>