assuming that I have
uint32_t a(3084);
I would like to create a string that stores the unicode character U+3084
which means that I
The C++ standard contains the std::codecvt
facet which converts between UTF-32 and UTF-8 according to 22.4.1.4 [locale.codecvt] paragraph 3. Sadly, the std::codecvt<...>
facets aren't easy to use. At some point there was discussion about filtering stream buffers which would take case of the code conversion (the standard C++ library needs to implement them anyway for std::basic_filebuf<...>
) but I can't see any trace of these.