I use od to print me the octal or hex of a file/stdin/string. This lets me see the ASCII, or UTF-8 encoded, values of my stdin.But we don't live in ASCIIland anymore. Is there any command that will print out the unicode values/codepoints for the (presume) utf-8 encoded input? I want to know what unicode characters I'm seeing?
Print out unicode values of stdin?
command line;debugging;unicode;text
You can use this if you are on a little endian system:iconv -f utf-8 -t ucs-4le | od -tx4or this if you are on a big endian system:iconv -f utf-8 -t ucs-4be | od -tx4