talha06
talha06

Reputation: 6466

IntelliJ IDEA 2018.3.5 - UTF-8 encoding error on console despite setting the encoding type

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.

Upvotes: 1

Views: 3251

Answers (2)

Ivan A. Malich
Ivan A. Malich

Reputation: 109

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.

Upvotes: 2

gloryjewel
gloryjewel

Reputation: 1

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'

Upvotes: 0

Related Questions