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

A prettier Terminal in OS-X Part 1 (awesome is awesome!)

o I recently switched over to awesomewm on my desktop because either the desktop wm’s suck(kde,gnome) or fluxbox,fvwm weren’t quite what I needed.

So I went looking for a good terminal that supports 256 colors. There’s mrxvt and whatnot, but again the Probleme with these is that either utf-8 is missing or they’re in some other way ugly, dependency wise or whatever.

Read More

New Skype themes in OSX

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

Read More

rabbitmq erlang crash

So, we’ve been at the reboot:http://reboot.dk for a while now and it’s been a fun time until I decided to rename one of the nodes.

Read More