#include #include #include #include int main(void) { std::wstring tmp; std::string pathname = "/some/filesystem/path/%%%%"; boost::filesystem::path path(pathname); std::wcout << path.wstring() << std::endl; return 0; }