4 ms·
You need to translate any text content into UTF-16 before calling Win32 APIs in most cases.
by frutiger 2y ago
You 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.