|
|
|
|
http://wilmeria.free.fr/texte.txt
|
Re, #! /usr/bin/perl
use warnings;
use strict;
my $l=<>;
print "$l\n";
my @code = unpack("C*",$l);
foreach(@code){
print "$_ => ${ \(chr($_)) }\n";
}
Le résultat[lamitest@localhost corbeille]$ perl char2code.pl texte.txt MPLE1<< 16 => 1 => 77 => M 80 => P 76 => L 69 => E 49 => 1 60 => < 60 => < 0 => 1 => 0 => 0 => 0 => 10 => [lamitest@localhost corbeille]$Tu peux aussi regarder les commande od et hexdump |
wÐ,SŒÌ¬šeåÙF3ëR]C°f\#nUꇥ;ƒFFùƒlŒçgTíÏlÚG)´´>M㹎D”úÔìQCQ³·dò£@ñ¹Ý)÷5 óíQ 3 Æe'§½g-QšV$‡MšÝ„¹W¹Ü½‰ê
|