Help for this page

Select Code to Download


  1. or download this
       if ( length($string) > $string =~ tr/\x00-\x7f// ) {
          $string = decode( 'utf8', $string );
       }
    
  2. or download this
       if ( $string =~ /[\x80-\xff]/ ) {
          $string = decode( 'utf8', $string );
       }