I\'m trying to write unicode characters (♠) using System.out, and a question mark gets printed instead.
How can I have proper unicode characters displayed instead o
Do what @Mike Nakis said in his answer with going to Settings and changing project Encoding.
In my case I had to do an additional step:
In the bottom right corner of IntelliJ IDEA switch encoding to UTF-8
Note that if you had some text pasted in your class with a different encoding (in my case I pasted a block of Cyrillic text right from the browser) it will become ugly formatted but that's ok. Just remove it and after switching to UTF-8 put it back.