适用于中英文系统
ini文件:
[A]
test=测试
代码:
char strValue[1024] = {0};
GetPrivateProfileStringA("A", "test", "", strValue, sizeof(strValue)*1024, "E:\\framework\\test.ini");
//将utf8编码转为gb2312即可
适用于中英文系统
ini文件:
[A]
test=测试
代码:
char strValue[1024] = {0};
GetPrivateProfileStringA("A", "test", "", strValue, sizeof(strValue)*1024, "E:\\framework\\test.ini");
//将utf8编码转为gb2312即可
首先利用fileReader.readAsText(filePart) 默认通过utf8格式读取文件,如果文件中有非utf8字符会替换成�, 如果有�说明有非utf8字符。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M