Buy Sell Discuss UK Domain Names at AcornDomains.co.uk Domain Sponsor

Today's Drop Dates are: 19-02-2012 or 26-02-2012   All times are GMT. The time now is 12:39:50 PM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Website Design and Promotion > Website Design > Scripts and Coding
Connect with Facebook

Scripts and Coding PHP, MySQL, scripts

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 10-05-2010, 11:28:07 AM     #1 (permalink)
Administrator
 
admin's Avatar
 
Join Date: Jun 2004
Posts: 8,601
admin has disabled reputation

£ annoying £ sign

Anyone know how to fix this: Current price: £35

on the homepage reading the DL RSS feed.

Thanks

Admin
admin is offline  
Old 10-05-2010, 11:31:52 AM     #2 (permalink)
rob
Founding Member
 
rob's Avatar
 
Join Date: Jan 2005
Posts: 5,978
rob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond reputerob has a reputation beyond repute

Check doctype declarations , or could be the feed outputting incorrectly.

Do you have direct link to the feed?
rob is offline  
Old 10-05-2010, 11:35:17 AM     #3 (permalink)

 
Join Date: Jul 2009
Posts: 1,323
retired_member13 has a reputation beyond reputeretired_member13 has a reputation beyond reputeretired_member13 has a reputation beyond reputeretired_member13 has a reputation beyond reputeretired_member13 has a reputation beyond reputeretired_member13 has a reputation beyond reputeretired_member13 has a reputation beyond reputeretired_member13 has a reputation beyond reputeretired_member13 has a reputation beyond reputeretired_member13 has a reputation beyond reputeretired_member13 has a reputation beyond repute

That error is normally caused by the character encoding - ISO versus UTF, ie the feed is encoded as one and the script is treating it as another.

Regards

Quote:
Originally Posted by admin View Post
Anyone know how to fix this: Current price: £35

on the homepage reading the DL RSS feed.

Thanks

Admin
retired_member13 is offline  
Old 10-05-2010, 11:52:37 AM     #4 (permalink)

 
tifosi's Avatar
 
Join Date: Oct 2004
Location: Lancashire
Posts: 1,907
tifosi has a reputation beyond reputetifosi has a reputation beyond reputetifosi has a reputation beyond reputetifosi has a reputation beyond reputetifosi has a reputation beyond reputetifosi has a reputation beyond reputetifosi has a reputation beyond reputetifosi has a reputation beyond reputetifosi has a reputation beyond reputetifosi has a reputation beyond reputetifosi has a reputation beyond repute

Needs the header to be UTF8.

In php this can be done with e.g:

header('content-type: text/html; charset: utf-8');
tifosi is offline  
Old 10-05-2010, 12:23:21 PM     #5 (permalink)
nnh

 
nnh's Avatar
 
Join Date: Jun 2006
Location: Scottish Highlands - New York, Paris, Peckham!
Posts: 652
nnh has a reputation beyond reputennh has a reputation beyond reputennh has a reputation beyond reputennh has a reputation beyond reputennh has a reputation beyond reputennh has a reputation beyond reputennh has a reputation beyond reputennh has a reputation beyond reputennh has a reputation beyond reputennh has a reputation beyond reputennh has a reputation beyond repute

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">

Pain...get that with ebay widgets too......
__________________
A-U-K.com | £s.net
nnh is offline  
Old 10-05-2010, 11:04:30 PM     #6 (permalink)
Administrator
 
admin's Avatar
 
Join Date: Jun 2004
Posts: 8,601
admin has disabled reputation

I did that but it didnt help....
admin is offline  
Old 11-05-2010, 02:55:05 PM     #7 (permalink)

 
jimm's Avatar
 
Join Date: Feb 2008
Location: North Yorkshire
Posts: 673
jimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond reputejimm has a reputation beyond repute

Is it going into your db?
If so just do a replace on £ to &pound;
__________________
Fov.cc | EvoOwners.co.uk | Forget Debt | xFTP | Jaimee | Linux Book | ESE Pods | Music Quotes
Affordable Server Admin - PM me!
jimm is offline  
Old 12-05-2010, 10:13:36 PM     #8 (permalink)
mat

 
mat's Avatar
 
Join Date: Apr 2007
Location: Hampshire
Posts: 3,328
mat has a reputation beyond reputemat has a reputation beyond reputemat has a reputation beyond reputemat has a reputation beyond reputemat has a reputation beyond reputemat has a reputation beyond reputemat has a reputation beyond reputemat has a reputation beyond reputemat has a reputation beyond reputemat has a reputation beyond reputemat has a reputation beyond repute

Quote:
Originally Posted by jimm View Post
Is it going into your db?
If so just do a replace on £ to &pound;
Beat me to it. If you have control over what it displays set it to the above.
__________________
Mathew.co.uk - Follow me on Twitter here
mat is offline  
Old 12-05-2010, 11:04:57 PM     #9 (permalink)
Administrator
 
admin's Avatar
 
Join Date: Jun 2004
Posts: 8,601
admin has disabled reputation

I dont no, its an RSS feed
admin is offline  
Old 12-05-2010, 11:23:30 PM     #10 (permalink)
Member
 
Join Date: Apr 2010
Location: Buenos Aires
Posts: 83
JDubya has a reputation beyond reputeJDubya has a reputation beyond reputeJDubya has a reputation beyond reputeJDubya has a reputation beyond reputeJDubya has a reputation beyond reputeJDubya has a reputation beyond reputeJDubya has a reputation beyond reputeJDubya has a reputation beyond reputeJDubya has a reputation beyond reputeJDubya has a reputation beyond reputeJDubya has a reputation beyond repute

You can try just before outputting the data pushing it through the php function:

$string = utf8_encode( $string );
OR
$string = utf8_decode( $string );

Because although you have changed the doc type to utf-8, firefox (in my case) is ignoring this tag and rendering the page in ISO-8859-1. If I go View -> Character set encoding in my browser, and select manually "utf-8" it rectifies the problem with some of the weird symbols I can see on this page.

My guess is - VB was configured not to use utf-8 and your DB tables will not be in utf-8 but probably the latin1 swedish_ci charset - meaning your templates stored in the DB are not in utf-8. So that's why my browser is ignoring the utf-8 character declaration in the header. And the data with the weird pound sign is probably coming in as utf-8.

So maybe utf8_decode() will convert it to the same as the page. You will also need to remove the header charset=utf-8 declaration.
JDubya is offline  
Closed Thread



Bookmarks

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Domain Name Community Replies Last Post
Domain for a sign business Sean Domain Name Wanted 13 22-12-2008 02:43:59 PM
Be one of the first to sign up to Social Domainer.com! Black Murdoch Internet Marketing 7 13-05-2008 01:02:00 PM
More Than 75,000 Sign Up For Wireless Internet Sites - InformationWeek RSS Domain Name News 0 28-09-2006 04:07:13 AM


All times are GMT. The time now is 12:39:50 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".