3 ms·
I've seldom seen UTF16 text file even under Windows. Sometimes, but not that often.
by bdd8f1df777b 2y ago
I've seldom seen UTF16 text file even under Windows. Sometimes, but not that often.
- Tempest1981 2y agoiirc, RC files are often UTF-16 https://stackoverflow.com/questions/72143553 https://stackoverflow.com/questions/72143553 > it looks like switching back to UTF-16 would unblock your experience with Resource Editor Edit: reportedly changed in VS2017 15.9
- frutiger 2y agoYou need to translate any text content into UTF-16 before calling Win32 APIs in most cases.
- Mindless2112 2y agoYou can set the code page to UTF-8 now. https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page https://learn.microsoft.com/en-us/windows/apps/design/global...
- bdd8f1df777b 2y agoBut if you are calling Win32 APIs, you can call Win32 APIs MultiByteToWideChar/WideCharToMultiByte to convert between UTF8 and UTF16. No need for iconv.
- frutiger 2y agoThat’s right. I was just replying to parents poster that it’s not about text files.