2009-05-08

Byte-order-mark (BOM): Adding to a file, looking for it

Adding Byte-order-mark (BOM) to a file
1. save an empty file as UTF-8
2. cat thatfile your_file > new_file

Looking for files having BOM
fgrep -rl `echo -ne '\xef\xbb\xbf'` .

No comments: