Tuesday 20 November 2007

The byte-order mark

Things you didn't know that you had to know about #42:

The BOM, or the byte-order mark.

The BOM is a hateful creature, that sits at the beginning of some of your files. It's there only to mess things up.

You cannot see the BOM, but when you do, it hurts your eye: .

The most rational action when running into the BOM in a UTF-8 file, is to blame the nearest Windows user, and then delete it (the BOM, not the user).

Don't ask me why the BOM made me remember this old tune:

No comments: