} // namespace STG
-GET_ADMIN::PARSER::PARSER(CALLBACK f, void * d)
+GET_ADMIN::PARSER::PARSER(CALLBACK f, void * d, const std::string & e)
: callback(f),
data(d),
+ encoding(e),
depth(0),
parsingAnswer(false)
{
{
parsingAnswer = true;
for (const char ** pos = attr; *pos != NULL; pos = pos + 2)
- if (!TryParse(propertyParsers, ToLower(*pos), pos, *pos))
+ if (!TryParse(propertyParsers, ToLower(*pos), pos, encoding, *pos))
{
error = std::string("Invalid parameter '") + *pos + "'.";
break;