Y
Hacker News
new
|
ask
|
show
|
jobs
by
cutierust
1367 days ago
Pretty sure most win32 now has an alternative utf8 function?
1 comments
abareplace
1367 days ago
No, they don't. We typically use the UTF-16 functions (with the W suffix).
link
jiggawatts
1367 days 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).
link
sqrt_1
1367 days 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...
link