I have csv file in UTF-8 and I want to save it in Cyrillic (Windows 1251) ... in Atom I found only - reopen with encoding ctrl+shift+u
In Sublime Text 3 there is "File -> Save with Encoding" - is there any alternatives in Atom ?
To save a file with encodingFrom the File menu, choose Save File As, and then click the drop-down button next to the Save button. The Advanced Save Options dialog box is displayed. Under Encoding, select the encoding to use for the file. Optionally, under Line endings, select the format for end-of-line characters.
Open the file you just saved and you'll see "UTF-16 Unicode Text" as the selected option in the "File -> Save As..." dialog. If you "File -> Save" then the contents of the ". csv" file are what you'd get if you saved it as "UTF-16 Unicode Text".
Open the file you want to verify/fix in Notepad++ In the top menu select Encoding > Convert to UTF-8 (option without BOM) Save the file.
Another option, without using any plugin: cut all text from file, then switch to the target encoding (Ctrl-Shift-U
) in an empty editor and paste the text back.
As seen in https://github.com/atom/encoding-selector/issues/7#issuecomment-274257654
Recently there is a plugin written for this: Convert-file-encoding
To use the plugin, press Ctrl+Shift+P, type Convert File Encoding
to search for the function and select the encoding you want the file convert into.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With