Search code examples
character-encodingdartdart-editor

How to set default encoding in Dart Editor?


My HTML5 project has to be fully made in the ISO-8859-2 encoding. Is there any possibility to set the character encoding in the Dart Editor, or I should use another IDE with the Dart plugin?

And for IDEs or editors with the Dart plugin: Does any IDE or editor with the Dart plugin generate the yaml file, compile the .dart file and make dart.js (for web applications)?

Please help!


Solution

  • You can try using the eclipse plugins version of our distribution (https://www.dartlang.org/tools/eclipse-plugin/). You should be able to set the file encoding for all file formats expect for dart files. The Dart language specification does indicate that Dart files should be encoded as UTF8. If you work with them in some other encoding, you run the risk of other consumers of your source files assuming that they're UTF8 encoded, and having trouble reading them and / or munging them on save.