This isn't a deploy related question, but I believe it belongs here.
I've found out about the od tool yesterday, and began to fiddle with it.
The question is about utf-8 encoding. See the examples:
~ $ echo -n á | od -x
0000000 a1c3
0000002
~ $ echo -n áá | od -x
0000000 a1c3 a1c3
0000004
~ $ echo -n ác | od -x
0000000 a1c3 0063
0000003
This is the issue
~ $ echo -n cá | od -x
0000000 c363 00a1
0000003
So á translates to c3 a1 correctly in each test besides the last, which begins with an ascii char. Why isn't the output of the last test 0063 a1c3 (i.e. invert the one before the last) ?
I've tried to read from a utf-8 file and the result is the same.
Thanks in advance.
-Axis for accepting hex offsets in params right ? But then, theod2's-cmeans-t cand overrides-t x1, sood2could just beod -Ax -c. – Niloct Nov 02 '20 at 15:22od -ctx1. Or usehexdump -C(maybe available viahd), orxxd. To answer the implied question in the post's title: "Yes, it is". – jrw32982 Nov 05 '20 at 18:04-Axis to output the file offsets in hex.-t x1doesn't negate the-calthough I see why you would think that. – Wayne Walker Nov 12 '20 at 03:22