• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

£ annoying £ sign

Status
Not open for further replies.
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

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

on the homepage reading the DL RSS feed.

Thanks

Admin
 
Needs the header to be UTF8.

In php this can be done with e.g:

header('content-type: text/html; charset: utf-8');
 
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">

Pain...get that with ebay widgets too......
 
Is it going into your db?
If so just do a replace on £ to &pound;
 
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.
 
Some RSS feeds allow you to specifiy the charset - or at least let you know what it is.
 
Status
Not open for further replies.
Top Bottom