£ Wont Display On PHP Mobile Site Any Idea Why

3 replies
Hey guys,

Don't know if any of you have run into this but i'd really appreciate some help if you can.

I have been building php based mobile sites and for instance when I make a menu for a restaurant and put the price e.g £2.99

The "£" displays as a question mark in a little black diamond when the site is uploaded and viewed on a mobile phone.

Any idea why?

Regards,
Stephen.
#display #idea #mobile #php #site
  • Profile picture of the author Nail Yener
    Hi Stephen,

    I had the same issue some time ago. It is related to the encoding of the files ( or database if you are using one). Make sure it is UTF-8.

    P.S. You may get a faster response if you ask coding related questions on the Programming Talk forum.
    {{ DiscussionBoard.errors[5648059].message }}
  • Profile picture of the author WillR
    The easiest way to resolve the problem is just use the HTML number for that character.

    1. Go to this page: HTML Codes - Table of ascii characters and symbols

    2. Look in the 'Symbol' column and find the symbol you are wanting to insert into your page

    3. Look next to that symbol in the 'HTML Number' column and that is what you insert into your page

    Example: If I wanted to insert the pound symbol I would insert this code instead: & # 1 6 3 ; (I have left spaces between each character so this forum doesn't just show the pound symbol. Obviously when inserting it into your page you don't have any spaces between the characters.)
    {{ DiscussionBoard.errors[5648583].message }}
    • Profile picture of the author Mr Squeeze
      Originally Posted by WillR View Post

      The easiest way to resolve the problem is just use the HTML number for that character.

      1. Go to this page: HTML Codes - Table of ascii characters and symbols

      2. Look in the 'Symbol' column and find the symbol you are wanting to insert into your page

      3. Look next to that symbol in the 'HTML Number' column and that is what you insert into your page

      Example: If I wanted to insert the pound symbol I would insert this code instead: & # 1 6 3 ; (I have left spaces between each character so this forum doesn't just show the pound symbol. Obviously when inserting it into your page you don't have any spaces between the characters.)
      Thanks will,

      that's exactly what I needed.

      Regards,
      Stephen
      {{ DiscussionBoard.errors[5649224].message }}

Trending Topics