Converting between UTF-8 strings and UTF-16 strings in C++/WinRT

4 · Raymond Chen · Sept. 22, 2021, 2:21 p.m.
C++/WinRT provides a pair of functions for converting between UTF-8 strings (with code units represented as char) and UTF-16 strings (code units of wchar_t). The to_string function takes a std::wstring_view of UTF-16 code units and converts them to a UTF-8 string, The post Converting between UTF-8 strings and UTF-16 strings in C++/WinRT appeared first on The Old New Thing....