void convert(const boost::property_tree::wptree & in, boost::property_tree::ptree & out) { out.data() = utf8(in.data()); for(boost::property_tree::wptree::const_iterator i = in.begin(), end = in.end(); i != end; ++i) { out.push_back(boost::property_tree::ptree::value_type(utf8(i->first), boost::property_tree::ptree())); convert(i->second, out.back().second); } }