Help for this page

Select Code to Download


  1. or download this
    $ not_utf8="$( printf "\x96" )"
    
    $ perl -e"use utf8; q{$not_utf8}"
    Malformed UTF-8 character: \x96 (unexpected continuation byte 0x96, wi
    +th no preceding start byte) at -e line 1.
    Malformed UTF-8 character (fatal) at -e line 1.
    
  2. or download this
    $ printf "\x96" | perl -nle'
       use open ":std", ":utf8";
    ...
    '
    Malformed UTF-8 character: \x96 (unexpected continuation byte 0x96, wi
    +th no preceding start byte) in printf at -e line 1, <> line 1.
    0