//utf8Str:以字节(char*或者Byte*)读取中文的字符串(乱码) CString UTF8toUnicode(const char* utf8Str) { UINT theLength=strlen(utf8Str); return UTF8toUnicode(utf8Str,theL
ini文件: [A] test=测试 代码: char strValue[1024] = {0}; GetPrivateProfileStringA("A", "test", "", strValue, sizeof(strValue)*1024, "E:\\framework\\test.ini"); //将utf8编码转为gb2312即可