Author Topic: You Are Screwed.  (Read 43 times)

Robert

  • Hero Member
  • *****
  • Posts: 940
    • View Profile
You Are Screwed.
« on: September 14, 2022, 05:17:27 PM »
Here' a Raymond Chen addendum to the warnings added to the latest version of the BCX Documentation.

Keep your eye on the code page: Is this string CP_ACP or UTF-8?

https://devblogs.microsoft.com/oldnewthing/20150611-00/?p=45401

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1369
    • View Profile
Re: You Are Screwed.
« Reply #1 on: September 14, 2022, 08:02:40 PM »
And if you're still not fully confused, this will help ...

Quote
Until recently, Windows has emphasized "Unicode" -W variants over -A APIs. However, recent releases have used the ANSI code page and -A APIs as a means to introduce UTF-8 support to apps. If the ANSI code page is configured for UTF-8, -A APIs typically operate in UTF-8. This model has the benefit of supporting existing code built with -A APIs without any code changes.

https://docs.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page?source=recommendations