Help for this page

Select Code to Download


  1. or download this
    my $string = 'blabla';
    my $is_unicode = utf8::is_utf8($string) ? 'YES' : 'NO';
    print "my string: $string is unicode: $is_unicode\n";
    
  2. or download this
    #!/bin/env perl
    use strict;
    ...
    $is_unicode = utf8::is_utf8($decoded_string) ? 'YES' : 'NO';
    print "my string: $decoded_string is unicode: $is_unicode\n";
    print Dumper(\$decoded_string), "\n";
    
  3. or download this
    #!/bin/env perl
    use strict;
    ...
    $is_unicode = utf8::is_utf8($decoded_string) ? 'YES' : 'NO';
    print "my string: $decoded_string is unicode: $is_unicode\n";
    print Dumper(\$decoded_string), "\n";
    
  4. or download this
    my string: müßig is unicode: NO
    $VAR1 = \'müßig';
    
    my string: m__ig is unicode: YES
    $VAR1 = \"m\x{fc}\x{df}ig";