Unable to convert std::string into std::basic_string<char8_t>, why?
I am facing the following problem, I am trying to convert an std::string object into an std::basic_string<char8_t> one, using the codecvt library. The code is the following: #include <string> #include <codecvt> #include <locale> int main() { std::string str = "Test string"; std::wstring_convert <std::codecvt_utf8_utf16 <char8_t>, char8_t> converter_8_t; converter_8_t.from_bytes( str ); } The problem is that when… Read More Unable to convert std::string into std::basic_string<char8_t>, why?