News for hackers. Stuff that matters.
Re:UTF-8 String Indexing Strategies by burntsushi on Thursday May 30, 2019 @11:00AM (#20051884)
Oh, I meant, did you have any links from official docs that said UTF-16 was used?

Your advice is fine, but when the rest of the world is UTF-8 (including the regex engine), things become quite a bit trickier!

Re:UTF-8 String Indexing Strategies by ChrisSD on Thursday May 30, 2019 @11:31AM (#20052237)
Oh I see. UTF-16 is the preferred encoding for all new applications: https://docs.microsoft.com/en-us/windows/desktop/intl/unicod...

Basically, in Windows land, unicode means UTF-16 unless code pages are mentioned https://docs.microsoft.com/en-us/windows/desktop/intl/code-p...