I am not sure `od` respects unicode.

Is there a tool (maybe different from od) that can print the code in
odd lines and the unicode character in even lines? Thanks.

$ od -xc <<< 'exámple'
0000000    7865    a1c3    706d    656c    000a
          e   x   ?   ?   m   p   l   e  \n
0000011

In this particular case,

65 78   a1c3    706d    656c    000a
e x á m p l e \n

-- 
Regards,
Peng

Reply via email to