Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

£ annoying £ sign

Status
Not open for further replies.
Check doctype declarations , or could be the feed outputting incorrectly.

Do you have direct link to the feed?
 
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.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members online

Premium Members

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom