Help for this page

Select Code to Download


  1. or download this
    sub multidecode_utf8 {
        my $s = shift;
        1 while $s =~ tr/\x80-\xFF// && utf8::decode($s);
        return $s;
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
            utf8::encode($str);
        }
    }