how to show a £ or ' in php

by 2 replies
3
I am wanting to display a pound sign (£) and also an appostraphe (') in a dropdown menu for an application form on a mobile website, but it only displays a black box with a question mark inside.

Can anyone show me how to correct this and have it display correctly?

Thanks
#programming #php #show
  • Hi,

    It has nothing to do with PHP but with HTML. It could be due to the character encoding you have declared for your page (did you use UTF-8 and is your editor in UTF-8 too?). You could also use this: HTML Codes - Table of ascii characters and symbols
    So the pound sign (£) would be &#163 for example (end it with a semicolon, I had to remove it because the forum was actually replacing it by the intended character).


    Seb.
  • Friend,
    Yes you don't need to do anything with php, rather just copy and paste the following HTML code and placed wherever you required.
    Here is the code: £

Next Topics on Trending Feed

  • 3

    I am wanting to display a pound sign (£) and also an appostraphe (') in a dropdown menu for an application form on a mobile website, but it only displays a black box with a question mark inside. Can anyone show me how to correct this and have it display correctly?