Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 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
Default
£ Wont Display On PHP Mobile Site Any Idea Why
Share on: 
fb share twitter share gplus share more share

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.
Mr Squeeze is offline  
Unread 18th Feb 2012, 02:29 AM   #2
You reap what you sow.
War Room Member
 
Nail Yener's Avatar
 
Join Date: 2008
Location: Sometimes you don't.
Posts: 1,078
Thanks: 196
Thanked 411 Times in 243 Posts
Default
Re: £ Wont Display On PHP Mobile Site Any Idea Why
Share on: 
fb share twitter share gplus share more share

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.
Nail Yener is offline  
The Following User Says Thank You to Nail Yener For This Useful Post:
Unread 18th Feb 2012, 05:44 AM   #3
Digital Marketer
War Room Member
 
WillR's Avatar
 
Join Date: 2010
Location: Australia
Posts: 12,475
Thanks: 1,984
Thanked 8,187 Times in 4,079 Posts
Default
Re: £ Wont Display On PHP Mobile Site Any Idea Why
Share on: 
fb share twitter share gplus share more share

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.)

WillR is offline  
The Following User Says Thank You to WillR For This Useful Post:
Unread 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
Default
Re: £ Wont Display On PHP Mobile Site Any Idea Why
Share on: 
fb share twitter share gplus share more share

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
Mr Squeeze is offline  
Closed Thread


Bookmarks

Tags
display, idea, mobile, php, site


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:21 AM.