- or download this
echo ü > umlaut
gzip -k umlaut
- or download this
perl -e '
use IO::Uncompress::Gunzip;
...
$_=<$gin>;
print " Compressed: $_ ",ord($_),"\n";
'
- or download this
perl -e '
use IO::Uncompress::Gunzip;
...
$_ = Encode::decode("UTF-8", $_);
print " Compressed: $_ ",ord($_),"\n";
'
- or download this
my $encoding = ":utf8";
if ( $filename =~ /\.gz$/ ) {
$encoding = ":gzip$encoding";
}
open $in, "<$encoding", $filename or die "Can't read $filename
+: $!\n";