@Thomas-Anderson said in Standard ANSI and code still change to something else:
Notepad++ auto-detects encoding based on the characters you type.
Please don’t make false claims like that. It doesn’t help anyone.
When you enter Danish letters like æ, ø, å, these aren’t part of standard ANSI,
You really don’t understand encoding. You probably shouldn’t be giving advice in such a conversation. (Update: Specifically, as I described above, “ANSI” is a misnomer, and when Notepad++ is using ANSI, it’s really using the default codepage for your installation of Windows, so for some people, who have set Windows to a Danish localization, or another localization that uses a Dutch-compatible character set, the “ANSI” selection in Notepad++ will know the Danish letters.) (Update 2: Besides, Windows-1252 encoding does have æ, ø, å, at codepoint 230, 248, and 229,respectively. And since Windows-1252 is what the vast majority of US and Western Europeans have their Windows set to accommodate, “ANSI” for all of those people will include those characters.)
so Notepad++ switches to a code page that can support them (like Windows-1252 or sometimes misdetects as 1255).
That’s not what Notepad++ does. Update: it follows the settings, as described in my post above, when you create a new file, regardless of what you type; however, when you open an existing file, it will use heuristics to guess the encoding, but that has nothing to do with typing.
To always save in ANSI:
Go to Settings → Preferences → New Document → Encoding.
Select ANSI as the default.
Check “Apply to opened ANSI files” if available.
This proves you don’t know what you’re talking about. The Apply to opened ANSI files is only available for the UTF-8 option.
Note: Some characters (like æøå in certain ANSI pages) may not display correctly in pure ANSI — using Windows-1252 is safer for Western European letters.
And if you tried to enter one of those characters while in a file (new or otherwise) under Notepad++'s “ANSI” setting, it would show up as a ?, not as the character. Which proves both your statement here, and the line above where you claimed Notepad++ changes encoding as you type, to be completely fallacious and false and misleading.
This ensures new files default to ANSI, but remember Notepad++ may still switch if characters aren’t supported in that code page.
Wrong.
Nearly everything you said in that post is wrong.
Based on this, and the other posts you’ve written, I am coming to the conclusion that you are violating this Forum’s requirement that posts be human-generated, not bot/AI/GPT/LLM-generated. Your posts have always sounded to me like they are LLM/GPT-generated, and this one has pretty much clenched the deal. Please stop spreading AI nonsense. (And if you aren’t using AI, then me believing that you are using AI should tell you something about the quality (or lack thereof) of your posts.)