Ok, I get that Code Editor has its default encoding but that should apply to a new editor (CTRL+M).
This scenario happens on a daily basis with me. I open a script in UTF8 (of course sometimes I use ANSI) encoding and then I want to execute it on one database, make some notes/changes in the file and after a while execute it on another environment, change something in the file, save, then maybe go back to the first environment or maybe go to another and so on.
It shouldn’t change the encoding of the file - I am operating with the same file all the time. I mean “Save File As” is something else. I am using the same file. I consider this a bug because changing automatically a files encoding makes no sense Don’t you think?
The “Send to New Session” is a great option - I like it very much. Could you consider fixing this thing the way I suggest?