Date: Thu, 2 Jul 2026 13:47:38 -1000
Hi C++ Unicode folks, literally asking for a friend (Christopher, on the To:
line so please Reply-All).
His project team wants to use UTF-8 in their code base and they hoped to
switch to u8string[_view] and char8_t throughout, but they encountered two
sets of limitations:
* In the standard, those types don't seem to work with std::format and
streams.
* On Windows, platform APIs interpret narrow characters using the
active code page (e.g., std::cout emits mojibake,
filesystem::path{std::string} UTF-8 paths are mangled or throw).
What's the current best guidance for adopting UTF-8 in C++ code?
Thank you,
Herb
line so please Reply-All).
His project team wants to use UTF-8 in their code base and they hoped to
switch to u8string[_view] and char8_t throughout, but they encountered two
sets of limitations:
* In the standard, those types don't seem to work with std::format and
streams.
* On Windows, platform APIs interpret narrow characters using the
active code page (e.g., std::cout emits mojibake,
filesystem::path{std::string} UTF-8 paths are mangled or throw).
What's the current best guidance for adopting UTF-8 in C++ code?
Thank you,
Herb
Received on 2026-07-02 23:47:43
