Page 1 of 1
"£" only displays some of the time
Posted: Thu Nov 08, 2007 1:49 pm
by davidtube
I've used this piece of code on two different pages of my site. One of the pages displays the British pound sign, the other shows a question mark in a box. Why is this?
Posted: Thu Nov 08, 2007 2:28 pm
by seppo0010
Has to do with character encoding... It depend's on using utf-8, iso-8859-1... the correct way to do it is using the html entity for that character: £
Posted: Thu Nov 08, 2007 2:52 pm
by davidtube
Ah thanks, now I remember. But now if i have £50 it displays "£50". If i have £ 50 it displays "£ 50" (with a space). How can I get rid of the space?
Posted: Thu Nov 08, 2007 2:53 pm
by seppo0010
You have to use a semicolon after £ so it will be £50
Posted: Thu Nov 08, 2007 3:14 pm
by davidtube
Great. Thank you