X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ae21e8d6ad32d0bf3517127aef5cd8129b7507aa..6a24f530fab7ebff1617f6d3929d2fcad7ed4818:/stglibs/srvconf.lib/parsers/chg_service.cpp diff --git a/stglibs/srvconf.lib/parsers/chg_service.cpp b/stglibs/srvconf.lib/parsers/chg_service.cpp index f8627614..6bea7565 100644 --- a/stglibs/srvconf.lib/parsers/chg_service.cpp +++ b/stglibs/srvconf.lib/parsers/chg_service.cpp @@ -29,14 +29,14 @@ using namespace STG; -std::string CHG_SERVICE::Serialize(const SERVICE_CONF_RES & conf) +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", conf.comment); -appendResetable(stream, "cost", conf.cost); -appendResetable(stream, "payDay", conf.payDay); +appendResetableAttr(stream, "name", conf.name); +appendResetableAttr(stream, "comment", MaybeEncode(conf.comment)); +appendResetableAttr(stream, "cost", conf.cost); +appendResetableAttr(stream, "payDay", conf.payDay); return stream.str(); }