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
  • 3
  • `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

2 Answers2

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
  • 11,655
  • 4
  • 27
  • 40
0

For turkish character support, you chould choose the international global UTF-8 format.

In IntelliJIdea **File / Settings / Editor / File Encoding** / *.properties Choose -> **Default encoding for properties files UTF-8

By the use of BOM configurations you can find the correct solution for your files. Do not forget that some choices of BOM for some class files can cause various \uxxxx errors like '\ufeff' error

Moreover you could choose also Global Encoding and Project encoding values just given above in the same tab as UTF-8 to get a more general solution for the future projects.

Screenshot of the web content created by the use of many components bfrom messages.properties

printed text or response from local server with turkish characters

Settings Page