I\'m trying to do a very simple task: take a unicode-aware wstring and convert it to a string, encoded as UTF8 bytes, and then the opposite way aro
wstring
string
For a drop-in replacement for std::string/std::wstring that handles utf8, see TINYUTF8.
std::string
std::wstring
In combination with you can convert pretty much from/to every encoding from/to utf8, which you then handle through the above library.