Author |
Message |
cormacmaher
Joined: 18 Sep 2012
Posts: 5
|
Posted: Tue Sep 18, 2012 8:20 am |

|
Hi
I just embedded rss2html on my site's homepage to display the latest post from my blog, and it's affected the way the Euro symbol is displayed, if you look under 'Latest Jobs' you'll see the Euro symbol is displayed as a diamond shape with a ? in it - any idea what might be causing this problem?
The site url is http://www.aupairireland.ie
Thanks in advance.
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2692
|
Posted: Tue Sep 18, 2012 8:29 am |

|
What is the URL of the feed you're trying to translate, the URL of the script itself and the URL of the template you're using?
More often than not, this is an encoding issue where one part of the sequence is in ISO formatting rather than UTF-8.
|
_________________
Create RSS Feeds
Audio Recording and Editing
|
|
 |
 |
cormacmaher
Joined: 18 Sep 2012
Posts: 5
|
Posted: Wed Sep 19, 2012 4:27 am |

|
|
 |
 |
cormacmaher
Joined: 18 Sep 2012
Posts: 5
|
Posted: Wed Sep 19, 2012 4:44 am |

|
Not sure if it's relevant or not, but this is how the script is called
$XMLFILE = "http://www.aupairireland.ie/blog/feed/rss";
$TEMPLATE = "rss2html/sample-template.html";
include("rss2html/rss2html.php");
?>
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2692
|
Posted: Wed Sep 19, 2012 8:54 am |

|
I'm a little confused, though. If I go to http://www.aupairireland.ie/blog/feed/rss and look at the first two items listed, I see "Au Pair Contract Template/ Letter of Offer" and "Skype our job-seekers!"
but if I go to your website, the first two items I see under Latest Jobs are "
Childminder/Live out Aupair wanted Blarney area" and "Live out Au Pair wanted in Dublin".
It doesn't look like rss2html is translating that panel at all?
|
_________________
Create RSS Feeds
Audio Recording and Editing
|
|
 |
 |
cormacmaher
Joined: 18 Sep 2012
Posts: 5
|
Posted: Wed Sep 19, 2012 9:43 am |

|
[quote="Tech Support"]I'm a little confused, though. If I go to http://www.aupairireland.ie/blog/feed/rss and look at the first two items listed, I see "Au Pair Contract Template/ Letter of Offer" and "Skype our job-seekers!"
but if I go to your website, the first two items I see under Latest Jobs are "
Childminder/Live out Aupair wanted Blarney area" and "Live out Au Pair wanted in Dublin".
It doesn't look like rss2html is translating that panel at all?[/quote]
Hi
The latest Jobs are not being added by rss2html, they're part of a separate script.
The problem is when the latest blog post is added, by rss2html, to the homepage of the site (bottom panel, center), the Euro symbol, in the latest jobs panel, comes out as that strange character.
If I was to remove the
$XMLFILE = "http://www.aupairireland.ie/blog/feed/rss";
$TEMPLATE = "rss2html/sample-template.html";
include("rss2html/rss2html.php");
?>
which calls the latest blog post, the ? would appear fine in the latest jobs panel.
Thanks
|
|
|
 |
 |
cormacmaher
Joined: 18 Sep 2012
Posts: 5
|
Posted: Wed Sep 19, 2012 11:21 am |

|
OK, I fixed it.
I changed the character encoding in rss2html.php to
$destinationEncoding = "ISO-8859-1";
I've no idea why it fixed the issue, as the encoding of my page is utf-8, but it fixed it, so I'm happy with that.
Thanks for your help Tech Support :)
|
|
|
 |
 |
Tech Support
Joined: 27 Aug 2004
Posts: 2692
|
Posted: Wed Sep 19, 2012 11:22 am |

|
I looked at the source of your webpage and noticed this in the meta tags:
The iso-8859-1 character set doesn't have the euro symbol in it. You might want to try using iso-8859-15 instead.
As to why it works without the new code added - it's probably just the browser doing some sort of auto-detection that helped show the euro symbol, even though the character set is not set correctly.
|
_________________
Create RSS Feeds
Audio Recording and Editing
|
|
 |
 |
|