Help for this page

Select Code to Download


  1. or download this
            my $octets = encode("utf8", $line);
            $octets =~ s/^\x{ef}\x{bb}\x{bf}//;
            $line = decode("utf8", $octets);
    
  2. or download this
            my $BOM = decode("utf8", "\x{ef}\x{bb}\x{bf}");
            $line =~ s/^$BOM//;
    
  3. or download this
            my $BOM = chr(0xFEFF);
            $line =~ s/^$BOM//;
    
  4. or download this
            $line =~ s/^\x{FEFF}//;