Neil Turner's Blog

Blogging about technology and randomness since 2002


For some time now, I’d been wondering why the CSS Validator would refuse to validate this site if the root URL is given. It was happy with the style sheet itself, but it kept telling me that my XML document was invalid if I gave it the the HTML file. And that wasn’t true because the W3C HTML validator said it was fine. In short, I was stumped.
Then I took a closer look at the error it was returning. Guess what the problem was? The £ character. The CSS validator only understands Unicode, whereas in here I’m using ISO-8859-1 (but I am contemplating a move to Unicode soon), and £ has to be represented by typing & pound ;, instead of just pressing SHIFT and 3 (which is the key combination on British keyboards). Once I’d fixed that, it was fine.
The problem is similar with the € character, so even if we join the Euro we’re still stuck. Bah.

One Comment

  1. To be honest with you, I’ve always typed & pound; instead of just using the £ when writing HTML: force of habit really (I learnt HTML on a non-PC system which had different “coding standard” for “top-bit” set characters such as the £ symbol: therefore when I typed the £ symbol on my old machine it would appear differently on a PC and differently again on a Mac or UNIX system).