I am trying to pack a hexadecimal string from a text file. I am using the H conversion 
with the pack function. Strangely, 0xC2 values are appearing in the resulting byte 
stream right before bytes whose value exceeds 0x7F.
 
To illustrate, the following works as expected:
 
$ perl -e 'print pack("H*","207F10")'|od -Ax -tx1
000000 20 7f 10
000003
 
However, replacing the "7F" with "80" in the pack function, results in the appearance 
of the "C2" in the dump:
 
$ perl -e 'print pack("H*","208010")' | od -Ax -tx1
000000 20 c2 80 10
000004
 
I appreciate any assistance.
 
Youssef Eldakar
Bibliotheca Alexandrina

Reply via email to