Posted on: 04/20/08 05:16am
By: dirtyjensen
Hello.
I have a problem when displaying RSS feeds into my blocks. It won't display danish letters ÆØÅ.
Anyone have a solution to this problem?
Thanks.
Re: RSS and Danish letters ÆØÅ
Posted on: 04/20/08 05:54am
By: Dirk
Can you supply some more information, please? What's the URL of the feed in question? Is it from a Geeklog site or some other source?
bye, Dirk
Re: RSS and Danish letters ÆØÅ
Posted on: 04/20/08 07:16am
By: dirtyjensen
Yes sorry.
I use this url to my block
Text Formatted Code
http://jobindex.dk/cgi/jobsearch.cgi?q=chauff%F8r®ion=nordjylland®ion=midtjylland®ion=sydjylland®ion=fyn®ion=sjaelland®ion=koebenhavn&xml=true&output=rss
My site
www.powergallery.org[*1] look at the left blocks 'Nyeste Chauffør jobs'
Re: RSS and Danish letters ÆØÅ
Posted on: 04/20/08 07:35am
By: Dirk
Hmm. The feed validator warns about possible
bad characters[*2] in the feed but I can't see anything obviously wrong with them. They don't display properly for me either, though.
Need to dig deeper ...
bye, Dirk
Re: RSS and Danish letters ÆØÅ
Posted on: 04/21/08 02:46am
By: 1000ideen
No problem with current Firefox under Windows2000
Re: RSS and Danish letters ÆØÅ
Posted on: 04/22/08 02:10am
By: THEMike
I'm looking into it, I think I've found where the encoding is lost, just trying to figure out how to un-loose it without loosing anything else...
Re: RSS and Danish letters ÆØÅ
Posted on: 04/22/08 03:58am
By: dirtyjensen
When i get mail about notification from this tropic =
Hello dirtyjensen,
A reply has been made to the thread 'RSS and Danish letters Ã?Ã~Ã.' by THEMike.
But never mind. I just hope you can fix the RSS issue :banana:
Re: RSS and Danish letters ÆØÅ
Posted on: 04/25/08 03:29am
By: dirtyjensen
Any updates 8)
Re: RSS and Danish letters ÆØÅ
Posted on: 04/28/08 02:40pm
By: THEMike
I can give you a hack that will work until 1.5 and a final release is available...
Find COM_rdfImport in lib-common.php:
Text Formatted Code
if ($charset == 'utf-8') {
$title = $feed->articles[$i]['title'];
} else {
$title = utf8_decode($feed->articles[$i]['title']);
}
Replace with:
Text Formatted Code
$title = $feed->articles[$i]['title'];
Of course this will break support for UTF-8 Feeds, but, since this is what's broken support for your feed, that may be an acceptable trade off for you.
Re: RSS and Danish letters ÆØÅ
Posted on: 04/28/08 03:31pm
By: dirtyjensen
Quote by: THEMikeI can give you a hack that will work until 1.5 and a final release is available...
Find COM_rdfImport in lib-common.php:
Text Formatted Code
if ($charset == 'utf-8') {
$title = $feed->articles[$i]['title'];
} else {
$title = utf8_decode($feed->articles[$i]['title']);
}
Replace with:
Text Formatted Code
$title = $feed->articles[$i]['title'];
Of course this will break support for UTF-8 Feeds, but, since this is what's broken support for your feed, that may be an acceptable trade off for you.
Thanks! :chestslam: Working now.... :shakehands: