1

As the title clearly describes, some UTF-8 characters such as (ğ, ç, ş, etc.) could not be displayed on the console output despite (1) setting all the encoding preferences available in the Settings UI to UTF-8, and (2) adding the -Dfile.encoding=UTF-8 parameter to the idea64.exe.vmoptions file as it is provided in another question in Stack Overflow.

IntelliJ IDEA Version: 2018.3.5 (Ultimate Edition)

Edit: I am running my web app in debug mode, and using Apache Tomcat as the servlet container. So, the console output is the log of the web app.

talha06
  • 6,206
  • 21
  • 92
  • 147
  • Could you please describe how exactly you're running your application from the IDE, and attach a screenshot of the console? – yole Mar 23 '19 at 14:06
  • Please, see the updated post. @yole – talha06 Mar 23 '19 at 18:08
  • 1
    `and (2) adding the -Dfile.encoding=UTF-8 parameter to the idea64.exe.vmoptions file` do not open file manually, use Help | Edit Custom VM Options... action, edit the file and restart IDE. Try also adding `-Dfile.encoding` to VM Options of the Run/Debug Configuration you use to launch the server. If this is the log file, make also sure that the characters are written correctly by opening this file from some other text editor. – Andrey Mar 25 '19 at 07:28

2 Answers2

2

As @Andrey stated, if you want to see those symbols in Run/Debug console you should add -Dfile.encoding=UTF-8 VM option to your Run/Debug Configuration, not to IDE options.

Burak
  • 2,251
  • 1
  • 16
  • 33
Ivan A. Malich
  • 109
  • 1
  • 10
0

183.5153.38 version is an example.

Your IntelliJ IDEA Ultimate runs AppData \ Local \ JetBrains \ Toolbox \ apps \ IDEA-U \ ch-0 \ 183.5153.38 \ bin \ idea.exe.

  • In the 183.5153.38.vmoptions file, add 'Dfile.encoding = UTF-8'