Why can't I display a pound (£) symbol in HTML?
html, javascript
Solution
Educated guess: You have a ISO-8859-1 encoded pound sign in a UTF-8 encoded page.
Make sure your data is in the right encoding and everything will work fine.
Problem
I'm trying to display the pound symbol in HTML (from PHP) but all I get is a symbol with a question mark. The following are things that I've tried. In PHP: ``` header('Content-type: text/html; charset=utf-8'); ``` In HTML, put this in the head tag: ``` <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> ``` I tried displaying it using a javascript function which converts it to: ``` &#65533; ``` I suppose it would help if I knew what I was doing... but I guess that's why I'm asking this question :)