What is the ANSI Text Encoding?
The term "ANSI" on Windows sometimes refers to an 8-bit character encoding that includes all of the 7-bit ASCII codepoints, despite the fact it's not an actual standard defined by the American National Standards Institute (the ANSI).

Quotes
“The term “ANSI” as used to signify Windows code pages is a historical reference, but is nowadays a misnomer that continues to persist in the Windows community. The source of this comes from the fact that the Windows code page 1252 was originally based on an ANSI draft, which became ISO Standard 8859-1. However, in adding code points to the range reserved for control codes in the ISO standard, the Windows code page 1252 and subsequent Windows code pages originally based on the ISO 8859-x series deviated from ISO. To this day, it is not uncommon to have the development community, both within and outside of Microsoft, confuse the 8859-1 code page with Windows 1252, as well as see “ANSI” or “A” used to signify Windows code page support.
https://devblogs.microsoft.com/oldnewthing/20040531-00/?p=39103 (accessed 2024-12-04)