Månedsarkiv: maj 2013

Find and strip BOM – Byte Order Mark from files

Use this to find and strip those peskey BOM’s from your PHP code: find -type f |while read file; do if [ “`head -c 3 — “$file”`” == $’\xef\xbb\xbf’ ]; then echo “found BOM in: $file”; sed -i -e ‘s/\xEF\xBB\xBF//’ … Læs resten

Udgivet i Knowledge Base | Skriv en kommentar