1

Here's my code and console output:

Code:

public class Main {

public static void main(String[] args) {
int sayi = 19;

if(sayi < 20)
{
    System.out.println("Sayı 20'den küçük!");
}
}

}

Output:

"C:\Program Files\Java\jdk-18\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.3\lib\idea_rt.jar=13784:C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.3\bin" -Dfile.encoding=UTF-8 -classpath C:\JavaDemos\conditionals\out\production\conditionals Main Say? 20'den k���k!

Process finished with exit code 0

Also UTF-8 is chosen in the bottom-right side.

Output

I've encountered a problem as the title suggests; which is an encoding problem in IntelliJ Idea Run Console (the version I'm currently using: IntelliJ IDEA 2021.3.3 (Ultimate Edition)).

version

I've tried these to solve the problem but nothing worked:

  1. Added these in both idea64.exe.vmoptions and idea.properties: -Dconsole.encoding=UTF-8 -Dfile.encoding=UTF-8

idea64.exe.vmoptions

idea.properties

  1. Settings --> Editor --> File Encodings

Global Encoding : UTF - 8 Project Encoding : UTF - 8

In Properties Files (*.properties) Default encoding for properties files : UTF - 8

File Encodings

  1. Settings --> Editor --> General --> Console Default Encoding : UTF - 8

Console

Thanks in advance for all of your replies.

velihan
  • 75
  • 8
  • 2
    Seems to be the same issue as in [this question](https://stackoverflow.com/q/71685543/2711488) – Holger Apr 01 '22 at 14:44
  • Thank you for your answer. I've solved the issue via this link it's the same topic but when i create this post, couldn't see it :) – velihan Apr 01 '22 at 16:08

0 Answers0