C/C++ Students

15 posts

C++ char8_t, the Boson

Update 2022 Sep

In case you might be wondering why don’t we “just” use char32_t and get over it once and for all, please see this GODBOLT.

It shows C and/or C++ console output simply does not deal with char32_t and char16_t. When on Linux you use char * which is codead as UTF8 and when on windows you use wchar_t which is coded as UTF16. Thus you have to transform your char32_t / char16_t strings to them frist, depending on which platform you happen to be, then you can use the console subsystem.

Continue reading