0

IntelliJ IDEA incorrect encoding in console output

https://www.jetbrains.com/help/idea/encoding.html

Turkish characters are not supported in intellij idea's terminal after run command. I tried the above two links but I couldn't solve the problem. console output photo-screenshot

kutbeyy
  • 3
  • 1
  • `System.out.println(System.getProperty("file.encoding"));` What does that give? What is your OS? – g00se May 03 '22 at 23:32
  • Terminal output: UTF-8, My OS is Windows 10 – kutbeyy May 04 '22 at 00:00
  • Try setting the IDE encoding to `Windows-1254`. What btw does `chcp` give in cmd.exe? – g00se May 04 '22 at 00:34
  • I tried the Windows-1254, the problem persisted. chcp cmd output:857(Turkish). I tested everything from scratch in the virtual windows operating system, there is no problem there. I think the problem is in my operating system – kutbeyy May 04 '22 at 00:58
  • Hmm. Is it the case that *some* Turkish characters are OK? Have a go with IBM857 – g00se May 04 '22 at 06:30

1 Answers1

0

Here is a related issue on YouTrack:

https://youtrack.jetbrains.com/issue/IDEA-291006/Running-the-Java-project-by-using-the-JDK-18-prints-the-garbled-

Feel free to watch it in order to be notified once it has updates. See this article if you are not familiar with YouTrack.

Konstantin Annikov
  • 9,695
  • 4
  • 16
  • 30