Boost logo

Boost Users :

From: Jim Orcheson (jimorcheson_at_[hidden])
Date: 2021-07-01 16:56:20


In C++17 and earlier, nowide::narrow can be used to convert from UTF-16
encoded strings (std::wstring) to UTF-8 encoded strings, stored in
std::string. C++20 introduced std::u8string for UTF-8 encoded strings
and it is incompatible with std::string. Is there some way I can get
from std::wstring to std::u8string? It is not at all obvious from the
nowide documentation.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net