Boost ptree get() return non printable characters?
Boost ptree get<std::string>() return non printable characters? I was wondering if it is possible for the ptree get function if called like: get<std::string>("string") on a JSON string to return non-printable characters? And if so, how do I filter thenm out best? The problem I'm seeing is that I isnert the strings into a std::map and every instance thereafter should just update the original entry but what happens is that I end up with multiple entries in the end. I use if (mymap->insert(std::make_pair(str, dat)).second == false){ (where str is what comes out of the above get() function) to check for existing entries - or insert a new one. dat is a strcture of data associated with the str that should be updated if it the entry exists already (which happens in the false case). get<std::string>("string") std::map if (mymap->insert(std::make_pair(str, dat)).second == false){ str get() dat str false 1 A...