Created
January 13, 2015 18:47
-
-
Save hendrikebbers/bd45a3a60d960995b35f to your computer and use it in GitHub Desktop.
emoji as string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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