codec:处理编码问题。

This commit is contained in:
2024-05-19 23:33:06 +08:00
parent 34174d94f1
commit df1dd36d3b
7 changed files with 44 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ bool ConfigIni::set_work_exe(const std::string& dir)
void ConfigIni::set_xml_path(const std::string& path)
{
if (ini_.IsEmpty()) {
return ;
return;
}
ini_.SetValue("Basic", "xml_path", path.c_str());
ini_.SaveFile(ini_path_.c_str());
@@ -38,6 +38,7 @@ bool ConfigIni::parse_ini()
if (ini_.LoadFile(ini_path_.c_str()) != SI_OK) {
return false;
}
ini_.SetUnicode();
opr_base_.node_path = ini_.GetValue("Basic", "oper_node");
opr_base_.purpose = ini_.GetValue("Basic", "purpose");
opr_base_.the_node = ini_.GetValue("Basic", "the_node");