posted 3 years ago
You shouldn't have to play games at the codepoint level. Java works with Unicode and only when you set up a print stream with code translation (for example, to ISO-8990-1) will there be a coding issue. I'm pretty sure all major command shells (Windows and Linux) are now defaulting to UTF-8, though, and Java likewise.
On the other hand, your command shell has a specific font assigned to it, and, as Stephan noted, if that font doesn't contain glyph definitions for the Unicode characters you are printing, then the best you'll get is boxes, question-marks, blank spaces or whatever glyph that font has designated for un-renderable character codes.
So it's really a matter of ensuring that your local system preferences are set up compatibly.
Aside from that, emojis on console messages is cute only the first few times. Save them for more light-hearted environments.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer