项目中用到 GetPrivateProfileString但是使用中, 发现 无法读出 ini 配置中的值, 比如Enable_log =3 我读到的是 API设置的默认值. 网上说可能时字符集编码的问题. https://blog.csdn.net/Yl12fh/article/details/80495092 编码格式的问题,有可能是系统语言默认字符集的问题,也有可能是项目编码的问题,文件的问题 经排查,造成的原因是INI文件是用ANSI/utf8等格式保存的,将文件另存为Unicode编码…