vscode-modelines icon indicating copy to clipboard operation
vscode-modelines copied to clipboard

fileencoding

Open jalbersol opened this issue 5 years ago • 3 comments

Hi, it would be great if the plungin would also support fileencoding (e.g. fileencoding=windows1252). Many thanks in advance. J.

jalbersol avatar Jan 02 '20 10:01 jalbersol

I second that. Encoding is the most important modeline for non-latin files that, for some reason, cannot be utf8

positron96 avatar May 04 '22 04:05 positron96

another situation is when handling DOSBox config files, VSCode will always assume UTF-8, but they are actually meant to be in CP437, and modelining would fix them on opening.

6XGate avatar Aug 14 '23 04:08 6XGate

vscode's extension API still does not support setting the fileencoding or charset. https://github.com/microsoft/vscode/issues/824 The EditorConfig extension is also waiting for the same functionality https://github.com/editorconfig/editorconfig-vscode/issues/35

ctlajoie avatar Aug 30 '23 07:08 ctlajoie