Wednesday, September 7, 2016

Emoji: Converting from and to UTF-8 Hexadecimal

Command:

$ echo -e "\xF0\x9F\x98\x80"


Result:

😀


Command:

$ echo -n 😀 | hexdump


Result:

0000000 f0 9f 98 80                                  
0000004