2 ms·
Except when you’re on Windows and have to use WCHAR to handle Unicode characters because they use UCS-2, not UTF-8
by colejohnson66 8y ago
Except when you’re on Windows and have to use WCHAR to handle Unicode characters because they use UCS-2, not UTF-8
- romed 8y agoOn Windows WCHAR is defined to hold a 16-bit unicode character, and is defined to be unsigned. In standard C wchar_t can be any damn thing, and isn't even guaranteed to be wider than char. It can be signed or unsigned. It is useless.