rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 96 forks source link

External tool output parsing breaks file encoding (UTF-8) #623

Closed sgt closed 3 years ago

sgt commented 3 years ago

For example, when reformatting Haskell code which contains Unicode symbols (.e. emoticons) using either Ormolu or Stylish Haskell, the Unicode symbols return garbled. The tools themselves do not break the encoding, my guess the culprit is the code which parses tools' output and loads it back into the editor.

rikvdkleij commented 3 years ago

Can you give an example?

I can't reproduce this issue.

rikvdkleij commented 3 years ago

image

sgt commented 3 years ago

image

After pressing Ctrl-Alt-L:

image

I'm on Windows. Finally got the plugin to compile, will try to investigate further if you can't manage to reproduce it on your side.

rikvdkleij commented 3 years ago

Nope, I can't reproduce this issue on macOS.

I'm on Windows. Finally got the plugin to compile, will try to investigate further if you can't manage to reproduce it on your side.

Great!

rikvdkleij commented 3 years ago

@sgt Again, your help is really appreciated!