Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cutierust
· 4y ago · 0 comments
Pretty sure most win32 now has an alternative utf8 function?
Comments
[–]
abareplace
4y ago
No, they don't. We typically use the UTF-16 functions (with the W suffix).
[–]
jiggawatts
4y ago
More specifically, the 8-bit 'A'-suffixed functions could be used as UTF8, but only on some versions of Windows if, and only if, the system code page is set to use UTF8 instead of the Latin1 (or whatever).
[–]
sqrt_1
4y ago
I don't think the system code page needs to be set?
https://learn.microsoft.com/en-us/windows/apps/design/global...
https://learn.microsoft.com/en-us/cpp/c-runtime-library/refe...