]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/parsers/chg_service.cpp
Show more information abot XML parsing error.
[stg.git] / stglibs / srvconf.lib / parsers / chg_service.cpp
index eabe11df43f231af0f92df5511859481a266c1d0..7dac5ba9925eee29d3eb41d8a72171da684b2a82 100644 (file)
 
 using namespace STG;
 
-std::string CHG_SERVICE::Serialize(const SERVICE_CONF_RES & conf, const std::string & encoding)
+std::string CHG_SERVICE::Serialize(const SERVICE_CONF_RES & conf, const std::string & /*encoding*/)
 {
 std::ostringstream stream;
 
 appendResetable(stream, "name", conf.name);
-appendResetable(stream, "comment", MaybeIconv(conf.comment, "koi8-ru", encoding));
+appendResetable(stream, "comment", MaybeEncode(conf.comment));
 appendResetable(stream, "cost", conf.cost);
 appendResetable(stream, "payDay", conf.payDay);