Help for this page

Select Code to Download


  1. or download this
    my $a = "\\xC4\\x80";
    $a =~ s/\\x([0-9A-Fa-f]+)/chr(hex($1))/ge;
    utf8::decode($a);
    printf "length=%d, ord=0x%x\n", length($a), ord($a);
    
  2. or download this
    length=1, ord=0x100