Thanks to @aki77 we are better at handling utf8 with #25. But support for any other encodings is terrible.
Potential files for testing: https://github.com/benogle/encodings
Open questions
- With open files, we can pass in the encoding from Atom. How to effectively search files with different encodings? I suppose we need to solve the encoding autodetection in core, then we can use the same pattern when opening each file.
- Same goes for replacing. We need to write the file in the correct encoding.