Opened 17 years ago

Closed 17 years ago

#1396 closed Bug (duplicate)

remove the Unicode Byte-Order Mark (BOM)

Reported by: zeev Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


remove the Unicode Byte-Order Mark (BOM) from all your files... to find them on a linux box do the following:

find /path/to/editor -type f | while read line; do hd "$line" | grep -q 'ef bb bf' && echo "$line"; done > listOfBOMedFiles.txt

to remove them then:

cat listOfBOMedFiles.txt | while read line; do dd if=$line of=$line.noBOM ibs=3 skip=1; mv $line.noBOM $line; done

Change History (1)

comment:1 Changed 17 years ago by Frederico Caldeira Knabben

Resolution: duplicate
Status: newclosed

DUP of #310

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy