hexdump confusion
Posted
by zedoo
on Stack Overflow
See other posts from Stack Overflow
or by zedoo
Published on 2010-05-17T07:47:45Z
Indexed on
2010/05/17
7:50 UTC
Read the original article
Hit count: 273
hexdump
I am playing with the unix hexdump utility. My input file is UTF-8 encoded, containing a single character ñ
, which is C3 B1
in hexadecimal UTF-8.
hexdump test.txt
0000000 b1c3
0000002
Huh? This shows B1 C3
- the inverse of what I expected! Can someone explain?
For getting the expected output I do:
hexdump -C test.txt
00000000 c3 b1 |..|
00000002
I was thinking I understand encoding systems..
© Stack Overflow or respective owner