24 Feb
2024
24 Feb
'24
1:05 a.m.
On Fri, Feb 23, 2024 at 2:10 AM Daniela Engert via Boost
Am 23.02.2024 um 05:15 schrieb Arno Schoedl via Boost:
That sounds good.
In our codebase (and many others?), for interoperability with APIs, char is used for UTF-8 and wchar_t for UTF-16 (on Windows).
I think this is a practical choice and works well. We do the same, with the additional advantage of targeting Windows only. So *everything* is Unicode (with respective code units), and in the subset of the 7-bit 'char' range where ASCII and Unicode code points match value-wise, the distinction doesn't really matter and everything is easy and agnostic of encoding.
I agree with this 100%. Zach