Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

files.autoGuessEncoding is wrong with utf-8 chinese #85738

Closed
MxDany opened this issue Nov 28, 2019 · 2 comments
Closed

files.autoGuessEncoding is wrong with utf-8 chinese #85738

MxDany opened this issue Nov 28, 2019 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@MxDany
Copy link

MxDany commented Nov 28, 2019

  • VSCode Version:
    版本: 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
  • OS Version:

Steps to Reproduce:

  1. set "files.autoGuessEncoding": true, create a 'go' file, such as 'main.go'

  2. open it in 'utf-8' encode

  3. input the following code:
    package main
    import (
    "fmt"
    )
    func main() {
    fmt.Println("hello 世界")
    }
    image

  4. close 'main.go' file

  5. reopen it, it's encoding will be 'Windows 1252' Instead of 'utf-8'
    image

Does this issue occur when all extensions are disabled?: Yes

@MxDany
Copy link
Author

MxDany commented Nov 28, 2019

oh, not all the 'utf-8' file with Chinese characters are garbled, you have to enter the same code as above, and it will be occur.

@bpasero bpasero added file-guess-encoding upstream Issue identified as 'upstream' component related (exists outside of VS Code) *duplicate Issue identified as a duplicate of another issue(s) labels Dec 5, 2019
@vscodebot
Copy link

vscodebot bot commented Dec 10, 2019

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Dec 10, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants