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

New Skype themes in OSX

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

Read More

Protonet webOS socket example

I’ve just written a sample application for creating sockets in webOS applications. You can read the full blog post about it on the protonet homepage

Read More