in reply to Remove BOM ?
In any case, the safest, surest, easiest way to remove the BOM (IMHO) is a perl one-liner:\xef\xbb\xbf
perl -CD -pe 'tr/\x{feff}//d' file.bom > file.nobom
UPDATE: Just for grins, I tried vi on my macosx and also on a freebsd box (same as my co-worker used), On the mac, the BOM was not visible, and I couldn't seem to position the cursor or issue a basic "delete" command in any way that could affect the BOM itself. On freebsd (where it appeared as three hex byte codes), this sequence of three keystrokes got rid of it: "3d." (YMMV)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Remove BOM ?
by marct22 (Initiate) on Oct 01, 2012 at 20:30 UTC | |
|
Re^2: Remove BOM ?
by Anonymous Monk on Jun 03, 2012 at 20:31 UTC |