files.autoGuessEncoding is wrong with utf-8 chinese #85738
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
版本: 1.40.2 (user setup)
提交: f359dd6
日期: 2019-11-25T14:54:45.096Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.17134
Steps to Reproduce:
set "files.autoGuessEncoding": true, create a 'go' file, such as 'main.go'
open it in 'utf-8' encode
input the following code:
package main
import (
"fmt"
)
func main() {
fmt.Println("hello 世界")
}
close 'main.go' file
reopen it, it's encoding will be 'Windows 1252' Instead of 'utf-8'
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: