PDA

View Full Version : Webstorm plugin creates file in wrong encoding



nikolay.bobrovskiy
19 Apr 2015, 2:18 AM
If use plugin option Create ExtJs class then file created in non-UTF-8. Have to convert it to UTF-8 manully.

Mark.Brocato
20 Apr 2015, 8:55 AM
Is anyone else experiencing this behavior? It always creates UTF-8 files on my system.

nikolay.bobrovskiy
20 Apr 2015, 9:07 AM
Sorry, my mistake. Webstorm has wrong project encoding setting.

Chris.OBrien
20 Apr 2015, 9:28 AM
I think this might be the behavior of JetBrains IDEs in general.

When I create either a new ExtJS class with the plugin, or a HTML file with IntelliJ's built-in functionality, both files say they are UTF-8 at the bottom right of the IDE window. However, if i use file -I fileName.ext in my OSX terminal, they both say they are us-ascii.

When I add an accented character, like a or , the IDE display remains the same, but the file -I command in OSX now returns UTF-8.

What format are you first seeing the file when a new Ext JS class is created?

nikolay.bobrovskiy
20 Apr 2015, 9:31 AM
What format are you first seeing the file when a new Ext JS class is created?
Now UTF-8 after I adjusted WebStorm settings.