Help for this page

Select Code to Download


  1. or download this
       enc-converter cp1252 < file.txt > file_utf8.txt
    #or
    ...
    #or a mix:
       some-process | enc-converter koi8-r > file_utf8.txt
       enc-converter iso-8859-1 < file.txt | utf8-process
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    binmode STDOUT, ":utf8";
    
    print while (<>);
    
  3. or download this
    perl -MEncode -le 'print for(Encode->encodings(":all"))'
    
  4. or download this
    perl -CO -pe 'BEGIN{binmode STDIN,":encoding(cp936)"}' < file.txt > fi
    +le.utf8