UTF-8 and bom problems in php

  • January 9, 2009
Table of Contents

So I was trying to debug on of our Sites because we we were having an odd sign at the beginning of the files.

Turns out it was a BOM at a database model somewhere totally different from the output phtml. If you got any windows developers using Ultraedit in your team give them a hearty punch from me. :-)

But since I didn’t know where it was from and what it is at the time I opened the result in a hexeditor and searched for the beginning(for the record, Wikipedia has a list of the different UTF BOM’s but most editors hide them):

grep -r `perl -e 'print "\xef\xbb\xbf"'` *
comments powered by Disqus

Related Posts

cutehg in OSX

UPDATE: murky native osx mercurial client is out

sed -i '' -e 's/port:tk//' /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python26/Portfile

sudo port install python26
sudo port install py26-sip

Pyqt4 seemed to have problems with qt4.5 so I installed it with the QT available from the Trolltech website.

Read More: cutehg in OSX

New Skype themes in OSX

So yesterday skype released a new version of Skype for Mac. You con get it here.

Read More: New Skype themes in OSX

Collab.net Subversion 1.5 OSX Problems

So I started using Versions a while ago… When I saw there’s people having problems with the 1.5 cli tools from Collab.net I was sceptical. But being unable to keep myself from upgrading I tried it anyway.

Read More: Collab.net Subversion 1.5 OSX Problems