Hello! I work on Windows with cyrillic encoding. I use Visual Studio Community 2017 [15.9.31] as script editor.
In Unity 2020.3.16f1 I met an issue while saving script. It saved it in Windows-1251 encoding instead of UTF-8-BOM as usual.
If I write only English symbols, it saves file in UTF-8. If I write in Russian, it changes encoding to Windows-1251. It causes some problems with viewing script content in Unity Editor and repository.
I checked it in previous versions (2019.4.28f1), it still saves in UTF-8-BOM, regardless content of my script.
Actually, I can save it in Visual Studio manually in UTF-8, but I have a lot of scripts and it is uncomfortable to do it.
I’m not sure if Unity supports UTF-16 internally (I think not, though I don’t know if this is a connected issue). UTF-8-BOM is much more reliable from my experience, universally. Unless you really need to support Asian and Arabic languages.
Though 1251 is also 8-bit… well it could be a bug.
maybe you can track this down idk
nono, having paid more attention to your post, it is definitely a bug. and you will probably have to do it the hard way or switch to a version where it works. visual studio probably changes encoding to reflect your windows-installed languages. and unity probably “fixed” something on their end.
Okay, I’ll send report just in case, thank you



