How can I convert string with local encoding to UTF-16 wide string in C++?

51 Views Asked by At

I have a std::string with a known encoding, e.g. GB-18030. Is there a way to pass the string with the name of encoding to some functionality which converts the string to a UTF-16 wide string?

I don't see a way how to do it with std::wstring_convert.

0

There are 0 best solutions below