3 ms·
On Windows this isn't great advice if you're making heavy use of Windows APIs. You end up needlessly converting back and forth between UTF-16 and UTF-8. So it
by ChrisSD 7y ago
On Windows this isn't great advice if you're making heavy use of Windows APIs. You end up needlessly converting back and forth between UTF-16 and UTF-8.
So it often makes more sense to simple use UTF-16 for your own strings and assume UTF-16 for strings returned by the WinAPI (but handle invalid sequences appropriately).