title: VSCode File encoding unexpectedly switches to UTF-8 whereas "settings.json" states that the encoding should be windows-1252
body: <p>I am using Visual Studio Code version 1.63.0 on Windows 10</p>
  <p><a href="https://i.stack.imgur.com/BKs8g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BKs8g.png" alt="Visual Studio Code version 1.63.0" /></a></p>
  <p>I have set up my VSCode such that all *.pl files are encoded in Windows-1252, see my settings.json below:</p>
  <p><a href="https://i.stack.imgur.com/h2CAK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h2CAK.png" alt="settings.json" /></a></p>
  <p>This works correctly when I open a folder in VSCode, for example: I right-click on the folder &quot;Test&quot; and then Open with VSCode. I can see that the encoding is Windows-1252. This works correctly, no problem here:</p>
  <p><a href="https://i.stack.imgur.com/8GMsy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8GMsy.png" alt="Encoding-1252" /></a></p>
  <p>However, if I right-click on the file directly and then open with VSCode, the encoding is unexpectedly UTF-8. This is not what I expect. I expect that the encoding is always Windows-1252 as specified in my &quot;settings.json&quot;, regardless of how I open VSCode.</p>
  <p><a href="https://i.stack.imgur.com/EBKHn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EBKHn.png" alt="Encoding UTF-8" /></a></p>
  <p>Thanks in advance for your help.</p>