How can I use/display characters like ♥, ♦, ♣, or ♠ in Java/Eclipse?
When I try to use them directly, e.g. in the source code, Eclipse cannot save the file.
What can I do?
Edit: How can I find the unicode escape sequence?
How can I use/display characters like ♥, ♦, ♣, or ♠ in Java/Eclipse?
When I try to use them directly, e.g. in the source code, Eclipse cannot save the file.
What can I do?
Edit: How can I find the unicode escape sequence?
Expanding a bit on @Joe Lencioni answer
You can use AnyEdit Eclipse plugin (install-able from Eclipse marketplace) to easily convert Unicode text into Java Unicode escapes:
One minor caveat is that AnyEdit wants to save the file first which obviously is disallowed by Eclipse until you fix your text.