Help for this page

Select Code to Download


  1. or download this
    use Encode;
    
    ...
    
    $utf8_str =~ tr/\x{fffd}//d;
    
  2. or download this
    open( INPUT, "<:encoding(cp1252)", $filename ) or die $!;
    
    ...
    while (<INPUT>) {
        # $_ contains utf8 data...
    }