Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save skellertor/3b35b748fb0625415899 to your computer and use it in GitHub Desktop.
Save skellertor/3b35b748fb0625415899 to your computer and use it in GitHub Desktop.
emoji as string
byte[] emojiBytes = new byte[]{(byte)0xF0, (byte)0x9F, (byte)0x98, (byte)0x81};
String emojiAsString = new String(emojiBytes, Charset.forName("UTF-8"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment