coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is there a way to print unicode characters and the actual code?


From: Peng Yu
Subject: Is there a way to print unicode characters and the actual code?
Date: Sat, 24 Feb 2018 10:53:10 -0600

It seems that `od` does not respect the 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, I'd like it to print something like the
following (positions are omitted). Is there a tool for doing so?

65 78 c1 6d 70 6c 65 0a
e x á m p l e \n

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]