I got legacy project which uses template files that were created using ISO-8859-2 encoding. Now we have branch where the whole system is changed to use UTF8, so all the files are converted to UTF8 as well. The problem is that when I switch between these branches IntelliJ keeps thinking that some text files are UTF8 even when I switched to legacy branch where they were ISO-8859-2. How can I plant the encoding information into that file, even for files that are not supporting by format (like XML or HTMLt). Let say I got plain text file (with "odd" file name extension) but as it is parsed by our software prior use I am able to put any comment blocks into it with any content I want with no problem. So if I could put something that IntelliJs would understand that would be great. But I cannot find anything and docs just talk about XML/HTML https://www.jetbrains.com/idea/help/configuring-individual-file-encoding.html#edit
Any hints appreciated. Thanks in advance.