X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/262f652e681a7b2f1686726a1f543ff5fad804da..faf619a9b927923d90782ab28734916197ff16b4:/stglibs/srvconf.lib/parsers/property.h diff --git a/stglibs/srvconf.lib/parsers/property.h b/stglibs/srvconf.lib/parsers/property.h index df033c99..7aa98aeb 100644 --- a/stglibs/srvconf.lib/parsers/property.h +++ b/stglibs/srvconf.lib/parsers/property.h @@ -52,14 +52,14 @@ class PROPERTY_PARSER : public BASE_PROPERTY_PARSER template <> inline -bool PROPERTY_PARSER::Parse(const char ** attr, const std::string & attrName, const std::string & fromEncoding) +bool PROPERTY_PARSER::Parse(const char ** attr, const std::string & attrName, const std::string & toEncoding) { -if (!encoding.empty() && !fromEncoding.empty()) +if (!encoding.empty() && !toEncoding.empty()) { std::string tmp; - if (!func(attr, value, attrName)) + if (!func(attr, tmp, attrName)) return false; - value = IconvString(tmp, fromEncoding, encoding); + value = IconvString(tmp, encoding, toEncoding); return true; } else