2 ms·
*terms and conditions apply If you are dealing with user-created files you should always use the *W functions as filenames are not guaranteed to be valid UTF-1
by account42 3y ago
*terms and conditions apply
If you are dealing with user-created files you should always use the *W functions as filenames are not guaranteed to be valid UTF-16 and thus might not be accessible via UTF-8 *A calls. At least until Microsoft adds WTF-8 [0] support to the *A functions. You can use WTF-8 yourself internally of course so no need for wide strings outside your platform abstraction code.
[0] https://simonsapin.github.io/wtf-8/ https://simonsapin.github.io/wtf-8/