how to show a £ or ' in php

2 replies
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
#php #show
  • Profile picture of the author OldLodgeSkins
    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.
    Signature
    Do you use Facebook ? Then you can make money just by inviting people to a Facebook group ! It's called the Instant Income System. How cool is that?
    {{ DiscussionBoard.errors[6393142].message }}
  • Profile picture of the author eluminousdev
    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: £
    {{ DiscussionBoard.errors[6433469].message }}

Trending Topics