Friday, March 25, 2016
Converting Between Hexadecimal Values and Characters
Command:
$ echo -n "織田信長" | hexdump
Output:
0000000 e7 b9 94 e7 94 b0 e4 bf a1 e9 95 b7
000000c
Hexadecimal Values to Multibyte Characters:
$ echo -e "\xE7\xB9\x94\xE7\x94\xB0\xE4\xBF\xA1\xE9\x95\xB7"
Output:
織田信長
Newer Post
Older Post
Home