in reply to Translating non-printable ascii
(actually, it's not clear what it should be, if your translations are right: 0xEC is 108 more than 0x80. But here's an example script:s/(\d\d)/chr(0x80+$1)/ge;
Output:$_="00 01 98 99"; s/(\d\d)/chr(0x80 + $1)/ge; @f= map {sprintf "%x", $_} unpack("C*", $_); print "@f\n";
80 20 81 20 e2 20 e3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Translating non-printable ascii
by samurai (Monk) on Oct 04, 2004 at 17:10 UTC | |
by Roy Johnson (Monsignor) on Oct 04, 2004 at 17:31 UTC |