IntelliJ logs to file with wrong encoding

278 Views Asked by At

I use the IntelliJ Save console output to file feature. (Run configuration -> Log tab)

But it looks like the encoding is wrong: In the console, I can see non-ascii-characters like "äöü", whereas in the output file, they get replaces by question marks or something else. So logging itself seems to be okay but the writing to the log file misses the encoding somehow.

1

There are 1 best solutions below

0
On

You may want to check your intellij encoding first: IntelliJ encoding

Secondly, which encoding did you use to open the file ? If you use an advanced text editor like Notepad++, then you can select it from the menu:

Notepad++