Windows API: ANSI and Wide-Character Strings — Is it UTF8 or ASCII? UTF-16 or UCS-2 LE?
Are those above all correct? Yes, if you don’t assume the existence of characters not encoded in Unicode (for most practical applications, this assumption is fine). Do the Windows “A” functions (like SetWindowTextA) take in ASCII strings? Or “multi-byte strings” (more questions on this below)? They take byte strings (i.e., strings whose code unit is … Read more