when I first ran into the utf8/utf16 etc a lot of windows stuff was "recommending" utf16. I see quite a few windows text editors default to it.
After a day or so of testing and trying it with various different SDKs across different platforms I settled on utf8. did everything needed, compatible with ASCII, all the functionality of 16 none of the _absolute insanity_.
looking back, these kind of issues are why its now some 20 years since I wrote any windows software (rather than porting linux/mac stuff or just using cross platform VMs like Javascript, Lua or Java).
MFC..... Oh my.... I actually feel sorry for the poor souls that still have that in their life.
After a day or so of testing and trying it with various different SDKs across different platforms I settled on utf8. did everything needed, compatible with ASCII, all the functionality of 16 none of the _absolute insanity_.
looking back, these kind of issues are why its now some 20 years since I wrote any windows software (rather than porting linux/mac stuff or just using cross platform VMs like Javascript, Lua or Java).
MFC..... Oh my.... I actually feel sorry for the poor souls that still have that in their life.