Re:Formatting Text in C++: The Old and the New Ways
by mrcode007 on Saturday September 16, 2023 @04:06PM
(#37538195)
Thanks for finding this out as a codepage issue. The implementation of the operator<< will indeed call ostream::widen() to expand character into a locale dependent equivalent.
no, it wont. if you are on an old Windows with code page 437 then sure. but on any sane UTF-8 system, you're just going to get some binary data.
1. https://wikipedia.org/wiki/Code_page_437