BOM, UTF - WTF?!

BOM=Byte Order Mark
UTF= Uniform Transformation Format
WTF?! = well, you know…

Whatever happened to just plain old ASCII text?
OK, so UTF is ASCII text, but why in the world would you want HIDDEN characters in your files? Especially if there’s no way to toggle displaying them or not. Thank goodness for good old DOS EDIT.

In my last post I mentioned the problems I had with installing Wordpress on my domain. The culprit was the BOM at the beginning of the wp-config.php file. I edited the file in Microsoft’s Expression Web and it added those weird characters. I fixed it by using “edit” from a DOS prompt. I was able to eliminate those hidden characters and save the file. That allowed the script to work and obviously Wordpress is working now.

I spent about an hour yesterday looking for a way to force Expression Web to NOT use BOM, but no luck. I found a few tutorials that showed how to eliminate it by changing the UTF, but that could come back to bite you as well, as that’s where the language encoding is stored. I guess the short answer is don’t edit PHP files in Expression Web.

Here’s a Wiki article on BOM:
http://en.wikipedia.org/wiki/Byte_Order_Mark

Here’s one on UTF-8:
http://en.wikipedia.org/wiki/UTF-8

And finally, here’s the Wiki article on WTF?!:
http://en.wikipedia.org/wiki/WTF

Tags: , , ,

2 Responses to “BOM, UTF - WTF?!”

  1. wikipedia » BOM, UTF - WTF?! Says:

    [...] Read the rest of this great post here [...]

  2. alexandra Says:

    OMG!! I feel your pain. Wordpress can be a total monster, I’m an actor and have no frikken clue about any of it, but luckily there are peeps out there like you. hahaha, earlier I was just watching this computer dude’s video on showbizzledotcom
    http://www.showbizzle.com/blogs/1/92

    hahaha, you should make vids and post them there too!

Leave a Reply