Atom not saved in correct encoding

Asked

Viewed 530 times

1

When saving a file by Atom, it always records the accents in UTF-8.

Even though the file being identified as ISO-8859-1 (there at the bottom).

So I did the following test at the terminal:

Before opening the file:

file -I arquivo.php 
arquivo.php: text/x-php; charset=iso-8859-1

Correct Texts: You do not have permission.

After opening the file and saving:

file -I arquivo.php 
arquivo.php: text/x-php; charset=iso-8859-1

Wrong texts: You do not have the permission.

I need to install something to fix?

2 answers

1

  • Rafael we are almost there. I checked and the supported type is latin1. But still . editorconfig (at the root of the project) is not taking effect. Thank you very much.

  • Download the plugin? apm install editorconfig closed Atom, opened the file again?

  • I did the steps right, I went to Install, I installed editorconfig, I restarted Atom and still nothing.

0

In that discussion (and that) says that Atom actually has a problem identifying the type of coding. They must be tidying up.

  • It is exactly this problem. Poxa seems that has not been solved. :(

Browser other questions tagged

You are not signed in. Login or sign up in order to post.