Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    encode('UTF-8', $chars, Encode::FB_CROAK);
    print length($chars),
       " characters - third encode, FB_CROAK, on original string\n";
    
  2. or download this
    8 characters - initial string
    8 characters - first encode, no FB_CROAK
    8 characters - second encode, FB_CROAK on, readonly string
    0 characters - third encode, FB_CROAK, on original string