reference: https://www.drupal.org/node/1622904#comment-8789815

grep -rl $'\xEF\xBB\xBF'  /var/www/your_drupal_project  > file_with_boms.txt
while read l; do sed -i '1 s/^\xef\xbb\xbf//'  $l; done < file_with_boms.txt

./sites/all/modules/contrib/adminimal_admin_menu/images/home.png
./sites/all/modules/contrib/adminimal_admin_menu/images/shortcut.png
./sites/all/modules/contrib/adminimal_admin_menu/images/square.png
./sites/all/modules/contrib/adminimal_admin_menu/README.txt

Causes issues with caching.

Comments

achton’s picture

As I pointed out over here, BOM does not apply for binary files, only text streams.

You may be right about the README.txt file though. Not sure if a patch file can fix a BOM.

ANDiTKO’s picture

Status: Active » Postponed (maintainer needs more info)

Yea... but even if README.txt got BOM, that wont affect caching. Its not used incode.

  • Tessa Bakker committed d7f3b06 on 7.x-1.x
    Issue #2370467 by mausolos: Byte-Order Mark removal
    
Tess Bakker’s picture

Status: Postponed (maintainer needs more info) » Fixed

README.txt is fixed with commit http://cgit.drupalcode.org/adminimal_admin_menu/commit/?id=bc5934193129f...

--- a/README.txt
+++ b/README.txt
@@ -1,22 +1,24 @@
-<U+FEFF>Quick info:
+# Quick info
Tess Bakker’s picture

Status: Fixed » Closed (fixed)