How to fix "<C3><A6>" encoding like issues
Answered
My terminal wasn't usually like this, this happened recently when I was messing around with file encodings in IntelliJ (I haven't messed with anything outside of IntelliJ), now I can't get it to work again. I tried resetting intellij ide settings to no avail.
What could cause this issue? We are talking danish letters.
Please sign in to leave a comment.
Hello,
You can try adding -Dconsole.encoding=UTF-8 in [Help | Edit Custom VM Options...] and restart the IDE.
Hi @... Klepikov,
I already tried that. Anyways, I just tried it again just to be sure I didn't screw up when I tried it the first time. The result is the same. The terminal persists in writnig out the hexadecimals of any danish letter: instead of "æ" it prints "<C3><A6>" in highlighted text.
I guess the reason why your proposal doesn't work is that it applies to the console not the terminal? (There is a difference?)
Does it work in the same way if you add both options -Dfile.encoding=UTF-8 and -Dconsole.encoding=UTF-8 and restart the IDE?
If the problem remains please attach the idea.log file after restarting the IDE and reproducing the problem. (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files)
The files can be uploaded at https://uploads.jetbrains.com. (do not forget to specify the UploadID)
Upload id: 2021_01_26_9GZ4kP3XvPA9CZCd (file: idea-logs-20210126-125219.zip)
Thanks. Can you please also attach screenshots from File | Settings | Tools | Terminal and File | Settings | Tools | SSH Terminal ?
Here you go:
https://i.gyazo.com/2c5a5f285c46f22364552a4b839635d7.png
There is no "SSH Terminal" section.
What console output do you see after executing chcp command from IDEA terminal? Please try the following solution https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window .