Welcome to Geeklog, Anonymous Friday, November 22 2024 @ 08:53 pm EST
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.
14
12
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'
12
16
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
13
12
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:
12
11
Quote
Status: offline
dirtyjensen
Forum User
Newbie
Registered: 04/20/08
Posts: 7
Any updates 8)
10
15
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.
11
11
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:
16
11
Quote
All times are EST. The time is now 08:53 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