Wrongly guess encoding as Windows 1252 or ISO-8859-2 #27419
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
file-encoding
File encoding type issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
19222cdc84ce72202478ba1cec5cb557b71163de
Steps to Reproduce:
Creates a YAML file, with some french text, make sure it is saved it as utf8
Make sure the default encoding is utf8 in the
settings.json
Reopen the file, guessed encoding is Windows 1252. Another side effect is that the line with accents is marked as modified as soon as the file is opened
The only workaround is to reopen the file with a different encoding, which is cumbersome when you work with a load of files.
If the same text, encoded as
UTF-8
, is saved in other file extensions, reopening this file show guesses with different encodings, like ISO-8859-2.I have files with different encoding, so I'd like vscode to guess from content, but here vscode zealously try other encodings while UTF-8 works and is the default encoding. Did I miss something, or is something misconfigured ?
The text was updated successfully, but these errors were encountered: