FeedForAll Forum Index ?
?Home?????FAQ????? Search ?????Register ?????Profile? ????Log in
?Characher encoding issue View next topic
View previous topic
Post new topicReply to topic
Author Message
cormacmaher



Joined: 18 Sep 2012
Posts: 5

PostPosted: Tue Sep 18, 2012 8:20 am Reply with quoteBack to top

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.
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2692

PostPosted: Tue Sep 18, 2012 8:29 am Reply with quoteBack to top

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
View user's profile
cormacmaher



Joined: 18 Sep 2012
Posts: 5

PostPosted: Wed Sep 19, 2012 4:27 am Reply with quoteBack to top

Hi

The url of the feed is http://www.aupairireland.ie/blog/feed/rss
The url of the script is http://www.aupairireland.ie/rss2html/rss2html.php
The url of the script is http://www.aupairireland.ie/rss2html/sample-template.html

Thanks
View user's profile
cormacmaher



Joined: 18 Sep 2012
Posts: 5

PostPosted: Wed Sep 19, 2012 4:44 am Reply with quoteBack to top

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");
?>
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2692

PostPosted: Wed Sep 19, 2012 8:54 am Reply with quoteBack to top

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
View user's profile
cormacmaher



Joined: 18 Sep 2012
Posts: 5

PostPosted: Wed Sep 19, 2012 9:43 am Reply with quoteBack to top

[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
View user's profile
cormacmaher



Joined: 18 Sep 2012
Posts: 5

PostPosted: Wed Sep 19, 2012 11:21 am Reply with quoteBack to top

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 :)
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2692

PostPosted: Wed Sep 19, 2012 11:22 am Reply with quoteBack to top

I looked at the source of your webpage and noticed this in the meta tags:

Code:


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
View user's profile
Display posts from previous:?? ? ?
Post new topicReply to topic


?Jump to:? ?



View next topic
View previous topic


Powered by phpBB ? 2001, 2002 phpBB Group :: FI Theme