TextEdit coding issue
When I edit and save text file, TextEdit saves it with recognized text coding (that is correct) but marks file with different coding definition, e.g. my file has UTF-8 coding (I can check it with other app), after a save in TextEdit the coding is still UTF-8 but other apps recognize UTF-16 or WinLatin2 or something else, so the text is displayed in other apps incorrectly, but when I select manually UTF-8 then the text looks OK. I tried different settings but nothing helped (doesn't matter which coding I select for saving the result is the same).
I have macOS Catalina. In the past it worked correctly (about 2 years ago), I don't know when it was broken.
Mac mini, macOS 10.15