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 11:06:19 -0600

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

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