Help for this page

Select Code to Download


  1. or download this
    perl -e 'print "\xc1\n"' | xxd -g1
    0000000: c1 0a                                          ..
    
    perl -CO -e 'print "\xc1\n"' | xxd -g1
    0000000: c3 81 0a                                       ...
    
  2. or download this
    $ perl -MEncode -e '$x="\xc1";
    $y = decode("iso-8859-1",$x);   # $y has utf8 flag set
    ...
    0000000  301       n   e     303 201  \n                              
    +  
               c1  20  6e  65  20  c3  81  0a                             
    +   
    0000010
    
  3. or download this
    perl -pe 'BEGIN{binmode STDOUT,":utf8"}' < file.iso > file.utf8
    
    # or, using the more cryptic "-C" option:
    
    perl -CO -pe '' < file.iso > file.utf8