Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cutierust
on Sept 20, 2022
|
parent
|
context
|
favorite
| on:
It's time to halt starting any new projects in C/C...
Pretty sure most win32 now has an alternative utf8 function?
abareplace
on Sept 20, 2022
[–]
No, they don't. We typically use the UTF-16 functions (with the W suffix).
jiggawatts
on Sept 20, 2022
|
parent
[–]
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
on Sept 20, 2022
|
root
|
parent
[–]
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...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: