codec:处理编码问题。
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user