I am trying to display a playing card using Unicode in Java/Android Studio. the Unicode for the card is U+1F0A1 which I understand can't be used and must be converted to surrogate pairs.
the code I have entered is
public String getShortName() {
char spades = 0xD83C/0xDCA1;
return String.valueOf(spades);
however, this doesn't display the card on the emulator. I have tried numerous variations of the surrogate pairs but nothing happens. Can anyone help please?
Many thanks