Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    while (<>) {
       print if !eval { decode('UTF-8', $_, Encode::FB_CROAK); 1 };
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    binmode(STDIN,  ':encoding(UTF-8)');
    binmode(STDOUT, ':encoding(iso-latin-1)');
    print while <>;