You will have to come up with an alternative way to convert between UTF-8 and UTF-16: https://en.cppreference.com/w/cpp/locale/codecvt_utf8_utf16 You code will not compile on newer C++ compilers.
You will have to come up with an alternative way to convert between UTF-8 and UTF-16:
https://en.cppreference.com/w/cpp/locale/codecvt_utf8_utf16
You code will not compile on newer C++ compilers.