News for hackers. Stuff that matters.
Re:C Strings and my slow descent to madness by Dwedit on Thursday April 06, 2023 @06:03PM (#35475162)
> "But for real if anyone knows how to get this to work on Windows 10 let me know!"

Setting the code page for the process to UTF-8 is done with an entry in the Manifest File (since Windows 10 "May 2019 update"), or calling undocumented NTDLL functions (since Windows 2000). I think it's function RtlInitNlsTables that does it.

Examples of using the manifest to set the code page to UTF-8: https://learn.microsoft.com/en-us/windows/apps/design/global...

May need to run "CHCP 65001" at command prompt before running the program.

Random code examples which happen to use the undocumented function (not complete code): https://cpp.hotexamples.com/examples/-/-/RtlResetRtlTranslat...

There are no comments on this comment yet.