Help for this page

Select Code to Download


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