Difference between #13 and #14 of
Remove Byte Order Mark (BOM) from files recursively

Revision #14 has been created by Kostas Apazidis (KonApaz) on Jul 18, 2014, 8:08:35 AM with the memo:

version
« previous (#13) next (#15) »

Changes

Title unchanged

Remove Byte Order Mark (BOM) from files recursively

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

without, BOM, utf-8, folder, files, recursive

Content unchanged

[...]
while read l; do sed -i '1 s/^\xef\xbb\xbf//' $l; done < file_with_boms.txt
```

Thats it! The BOM will be removed from all files that contained it. Now you can upload your project on your server.

**Note:** Because I didn't use this way many times and I don't know if it works properly for all cases and files, make first a backup of your project! :)
2 1
7 followers
Viewed: 34 203 times
Version: all
Category: How-tos
Last updated by: samdark
Created on: Oct 2, 2013
Last updated: 5 years ago
Update Article

Revisions

View all history