Help for this page

Select Code to Download


  1. or download this
    use File::BOM qw( :all );
    open $fh, '<', $filename;
    my ($encoding) = get_encoding_from_filehandle($fh);