18th Feb 2012, 01:52 AM | #1 |
HyperActive Warrior War Room Member Join Date: 2010 Location: Liverpool
Posts: 409
Thanks: 66
Thanked 92 Times in 53 Posts
|
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. |
18th Feb 2012, 02:29 AM | #2 |
You reap what you sow. War Room Member Join Date: 2008 Location: Sometimes you don't.
Posts: 1,078
Thanks: 196
Thanked 411 Times in 243 Posts
|
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. |
The Following User Says Thank You to Nail Yener For This Useful Post: |
18th Feb 2012, 05:44 AM | #3 |
Digital Marketer War Room Member Join Date: 2010 Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
|
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.) |
| |
The Following User Says Thank You to WillR For This Useful Post: |
18th Feb 2012, 09:05 AM | #4 | |
HyperActive Warrior War Room Member Join Date: 2010 Location: Liverpool
Posts: 409
Thanks: 66
Thanked 92 Times in 53 Posts
|
that's exactly what I needed. Regards, Stephen | |
Bookmarks |
Tags |
display, idea, mobile, php, site |
| |