Welcome to Geeklog, Anonymous Thursday, May 02 2024 @ 06:44 pm EDT
Geeklog Forums
RSS and Danish letters ÆØÅ
Status: offline
dirtyjensen
Forum User
Newbie
Registered: 04/20/08
Posts: 7
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.
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.
11
7
Quote
Status: offline
dirtyjensen
Forum User
Newbie
Registered: 04/20/08
Posts: 7
Yes sorry.
I use this url to my block
My site www.powergallery.org look at the left blocks 'Nyeste Chauffør jobs'
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=rssMy site www.powergallery.org look at the left blocks 'Nyeste Chauffør jobs'
9
11
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Hmm. The feed validator warns about possible bad characters 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
Need to dig deeper ...
bye, Dirk
9
9
Quote
Status: offline
dirtyjensen
Forum User
Newbie
Registered: 04/20/08
Posts: 7
When i get mail about notification from this tropic =
But never mind. I just hope you can fix the RSS issue :banana:
Hello dirtyjensen,
A reply has been made to the thread 'RSS and Danish letters Ã?Ã~Ã.' by THEMike.
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:
8
8
Quote
Status: offline
dirtyjensen
Forum User
Newbie
Registered: 04/20/08
Posts: 7
Any updates 8)
6
10
Quote
Status: offline
THEMike
Forum User
Moderator
Registered: 07/25/03
Posts: 141
Location:Sheffield, UK
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:
if ($charset == 'utf-8') {
$title = $feed->articles[$i]['title'];
} else {
$title = utf8_decode($feed->articles[$i]['title']);
}
Replace with:
$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.
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.
8
7
Quote
Status: offline
dirtyjensen
Forum User
Newbie
Registered: 04/20/08
Posts: 7
Quote by: THEMike
if ($charset == 'utf-8') {
$title = $feed->articles[$i]['title'];
} else {
$title = utf8_decode($feed->articles[$i]['title']);
}
Replace with:
$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.
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.
Thanks! :chestslam: Working now.... :shakehands:
11
8
Quote
All times are EDT. The time is now 06:44 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content