Welcome to Geeklog Thursday, September 23 2021 @ 01:22 am EDT

Geeklog Forums

RSS and Danish letters ÆØÅ


Status: offline

dirtyjensen

Forum User
Newbie
Registered: 20/04/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.


 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

dirtyjensen

Forum User
Newbie
Registered: 20/04/08
Posts: 7
Yes sorry.
I use this url to my block
PHP Formatted Code
http://jobindex.dk/cgi/jobsearch.cgi?q=chauff%F8r&region=nordjylland&region=midtjylland&region=sydjylland&region=fyn&region=sjaelland&region=koebenhavn&xml=true&output=rss


My site www.powergallery.org look at the left blocks 'Nyeste Chauffør jobs'
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/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
 Quote

Status: offline

1000ideen

Forum User
Full Member
Registered: 04/08/03
Posts: 1298
No problem with current Firefox under Windows2000
 Quote

Status: offline

THEMike

Forum User
Moderator
Registered: 25/07/03
Posts: 141
Location:Sheffield, UK
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...
 Quote

Status: offline

dirtyjensen

Forum User
Newbie
Registered: 20/04/08
Posts: 7
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:
 Quote

Status: offline

dirtyjensen

Forum User
Newbie
Registered: 20/04/08
Posts: 7
Any updates 8)
 Quote

Status: offline

THEMike

Forum User
Moderator
Registered: 25/07/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:

PHP Formatted Code

            if ($charset == 'utf-8') {
                $title = $feed->articles[$i]['title'];
            } else {
                $title = utf8_decode($feed->articles[$i]['title']);
            }
 


Replace with:

PHP 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.
 Quote

Status: offline

dirtyjensen

Forum User
Newbie
Registered: 20/04/08
Posts: 7
Quote 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:

PHP Formatted Code

            if ($charset == 'utf-8') {
                $title = $feed->articles[$i]['title'];
            } else {
                $title = utf8_decode($feed->articles[$i]['title']);
            }
 


Replace with:

PHP 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:
 Quote

All times are EDT. The time is now 01:22 am.

  • 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