3 ms·
We will always have to read historical formats from time to time. UTF-8 already has extremely good penetration.
by bawolff 3y ago
We will always have to read historical formats from time to time. UTF-8 already has extremely good penetration.
- Longhanks 3y agoCries in WinAPI
- jsheard 3y agoThey're getting there, starting from later builds of Windows 10 there's a manifest flag you can set on your executables which makes all of the legacy ASCII interfaces accept and return UTF-8 instead. Windows is probably just converting to and from UTF-16 internally but that's not your problem anymore.
- im3w1l 3y agoWill it refuse to run on older versions of windows or silently do the wrong thing?
- jsheard 3y agoI believe it silently does the wrong thing so you should probably enforce a minimum Windows version by some other means. The last version to not support that UTF-8 flag has been officially EOL for years so cutting it off completely is on the table, depending on your audience.
- andreyv 3y agoEven the original version 1507 is still supported on the LTSC channel. Support for UTF-8 manifest was added only in version 1903.
- Tempest1981 3y agoMaybe this? https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page https://learn.microsoft.com/en-us/windows/apps/design/global...
- pjmlp 3y agoIsn't that bad actually, (licks WinRT scars).