Re: FN-FORUM: Storing tab spacings in MySQL and displaying them on web pages
date posted 12th October 2006 21:14
> Just to teach you some more good practice HTML, you should never use a £
> sign in HTML it is not strictly valid and in some browser / font face
> combinations may display wrongly. Instead you should replace them with
> the entity "£", there is a handy function that does this for you
> in PHP (html_entities I think).
£ is a perfectly valid character in HTML, so long as the
character-encoding of the page supports it. I use UTF-8 for all my pages,
and have lots of £ signs, accented characters, etc.
The characters you do need to enocde are ", , and &, which always need
to be ", <, >, and & respectively. This conversion is done
by the htmlspecialchars() function in PHP.
Cheers!
Anthony
--
www.fonant.com - Quality web sites