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",
}
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.