Windows代码页、区域
936,即GBK。图1.22 枚举代码页可使用API函数EnumSystemCodePages,枚举系统的代码页。下面的代码枚举代码页,存入变量s_mapCodePage中:static std::map<UINT,CString> s_mapCodePage; static BOOL CALLBACK EnumCodePagesProc(LPTSTR lpString){ s_mapCodePage[_tcstoul(lpString,NULL,10)]; return TRUE;} {//枚举代码页,存入s_mapCodePage s_mapCodePage.clear