Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    print 'Raw: ' . length $str;
    print "\nDecoded: " . length decode ('utf8', $str);
    
  2. or download this
    Raw: 80
    Decoded: 40