I'm trying my best to understand this thread, but I'm having difficulty.
Please stop trying, there is nothing for you here, read Tutorials/perlunitut: Unicode in Perl, perlunitut, use via:File::BOM
I've tried deleting it using all these commands, none of which works:
Please stop that :) Read perlunitut, use via:File::BOM , it will decode your file and remove the BOM for you
If you've got raw data you want to share you can use
perl -MData::Dump -MFile::Slurp -e " dd scalar read_file shift, { qw/
+binmode :raw / }; " AnyKindOfInputFile > ThatFilesBytesAsPerlAsciiCo
+de.pl
The different ways BOM can look
$ perl -MFile::BOM -MData::Dump -e " dd \%File::BOM::enc2bom "
{
# tied Readonly::Hash
"iso-10646-1" => "\xFE\xFF",
"UCS-2" => "\xFE\xFF",
"UTF-16BE" => "\xFE\xFF",
"UTF-16LE" => "\xFF\xFE",
"UTF-32BE" => "\0\0\xFE\xFF",
"UTF-32LE" => "\xFF\xFE\0\0",
"UTF-8" => "\xEF\xBB\xBF",
"utf8" => "\xEF\xBB\xBF",
}
|