Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Auto-detect encoding on an already open file does not properly detect in all cases #8

Open
alexandernst opened this issue Nov 12, 2014 · 5 comments
Labels

Comments

@alexandernst
Copy link

Maybe related to atom/atom#4160 , the "auto-detect encoding" in this package is completely broken.

Simplest test: create a new UTF16 encoded file and write a few "weird" characters (蔡葕ቅ for example) and save the file. Now open it with Atom and try to auto-detect the encoding.

@lee-dohm
Copy link
Contributor

Per @kevinsawicki here, could you open this on Atom Core?

If auto-detect on open is added, it will have to be done in core since that is where the buffer's are built.

https://github.com/atom/atom/issues/new

@lee-dohm lee-dohm reopened this Nov 13, 2014
@lee-dohm
Copy link
Contributor

Ah sorry, I misinterpreted what you were trying to say. Rewording the title to make it more clear.

@lee-dohm lee-dohm changed the title Auto-detect encoding is broken Auto-detect encoding on an already open file does not properly detect in all cases Nov 13, 2014
@renkun-ken
Copy link

It's frustrating to re-select Auto Detect for each non-utf-8 encoded file every time I open them especially when I need to view quite a number of files located in a folder. Really appreciate it if someone could fix this.

@jamadam
Copy link

jamadam commented Nov 15, 2018

Wired behavior reproduces even without reopening the file.

Simplest test: create a new UTF16 encoded file and write a few "weird" characters (蔡葕ቅ for example) and save the file. Click the project pane and then click the file tab again.

atom: 1.32.2
encoding-selector: 0.23.9

@aledmb
Copy link

aledmb commented Aug 20, 2019

here's a text file created with notepad on windows 10.

all editors open it using the correct encoding, except atom.

atom could do the same thing phpstorm does, which is tell the user what's happening.

test.txt
notepad
wordpad
open-office
phpstorm-2019-2
atom

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants