Is it possible to convert UTF8 string in a std::string to std::wstring and vice versa in a platform independent manner? In a Windows application I would use MultiByteToWideC
You can use the codecvt locale facet. There's a specific specialisation defined, codecvt that may be of use to you, although, the behaviour of that is system-specific, and does not guarantee conversion to UTF-8 in any way.