|
|
#1 |
![]() Join Date: Apr 2004
Posts: 5
![]() |
Hi !
I'm testing Mambo which seems to be great but I'm wondering if the RSS feed can handle several character encoding since the french character (accents) are not recognized (in fact the titles are correct but not the content). I did'nt succeed in finding where to specify the character encoding for the 2.0 RSS feed my site provide. As per example I got this (even with Sage in Firefox or with stand alone readers as Sharpreader or Feedreader) : the original text : l'entrée through the feed : Code:
l'entrée PS : even the apostroph is not converted, but it is on the forum. ;-)
__________________
Have a nice day Philippe |
|
|
|
|
|
#2 |
![]() Join Date: Aug 2004
Location: Sierre, Switzerland
Posts: 155
![]() |
I haven't tried this now, but there seems to be a solution here
http://www.mamboreport.de/cms/index....sk=view&id=781 This page is in german, basically it says to edit components/com_rss/rss.php and change this Code:
145:// removes all formating from the intro text for the description text 146:$item_description = $row->introtext; 147:$item_description = mosHTML::cleanText( $item_description ); 148:$item_description = html_entity_decode( $item_description ); //Umwandlung Please let me know if this did the job, Chris |
|
|
|
|
|
#3 |
![]() Join Date: Oct 2003
Location: Marikina, Manila, Philippines
Posts: 5,153
![]() |
We are aware of this bug - it was reported on the tracker (and fixed in the CVS).
The fix will be available in the forthcoming 4.5.2 Maintenance Version release slated for late January.
__________________
All my posts are copyright © Rey Gigataras [aka stingrey] and cannot be be reproduced without permission Former Mambo Core Team Member July 2004 - August 2005 |
|
|
|
|
|
#4 |
![]() Join Date: Apr 2004
Posts: 5
![]() |
By just adding the above line :
Code:
$item_description = html_entity_decode( $item_description ); Thanks for your answers and have nice christmas. I already have my gift ;-)
__________________
Have a nice day Philippe |
|
|
|
|
|
#5 |
![]() Join Date: Jan 2005
Posts: 6
![]() |
Hi, reopening this thread...
Have similar problem as Philippe but unfortunally the above code did not solve the problem. It seems like feeding with encoded iso-8859-1 does not works as it should. Basically I feed Swedish to my site and the 3 extra vowel we have added compared to the "english" alphabet is showed as: View with iso-8859-1 (Swedish) å => Ã¥ (Swedish) ä => ä (Swedish) ö => ö When forcing my browser to use UTF-8, the feed is showed correctly but then the rest of the site gets incorrect character coding. Since all nordic languages have similar vowels this problem would occur also in norwegian and danish. Exemple feed: http://testcentret.idg.se/tjanster/rss/rss.xml My Mambo version is 4.5.1a Stable [Three For Rum] 05/10/2004 and I have the Swedish languagepack installed. If anyone have an idea how to solve this........much appreciated //Magnus |
|
|
|
|
|
#6 |
![]() Join Date: Feb 2004
Location: New Orleans
Posts: 893
![]() |
mod note moved to general questions
|
|
|
|
|
|
#7 |
![]() Join Date: Feb 2005
Location: Linkoping, Sweden
Posts: 1
![]() |
Hi Magnus:
Had the same problem you have with a feed from Svensk Golf ( http://www.golf.se/xml/rss/index_10_latest.rss) when developing on my local, WAMP platform. However, when uploaded to my hosting provider on a LAMP platform it works just fine. Same settings and code for the entire site. Using same setting for the browser, whether Firefox or IExplorer (Autodetect: Universal; Coding: ISO-8859-1). My quick assumption was that either the Apache configuration differs and I can't work out where or the O/S is better equipped to handle the different character encodings. However, not looking a gift horse in the mouth I leaving everything well enough alone now ;-) Maybe not much help, but maybe another piece of a puzzle. Good luck, Bo |
|
|
|
|
|
#8 |
![]() Join Date: Jan 2005
Posts: 6
![]() |
Thanks Bo, for your input.
Have spent some 10 effective hours trying to figure this out. But since I am no wizard in this topic and could not find any help I did a workaround. Dropped the News feed component and used the Wrapper instead. Creating a "stand-alone" page and with javascript displaying the RSS-feed from my suppliers. I think the problem is platform independent (running LAMP) and the solutions is to be found in the setup of (in this case) the Apache-server basic character handling. But I couldn´t figure out how to. Sad, since the built-in functionallty was fine as long as the feed was in english. But my site is swedish speaking. //Magnus |
|
|
|
|
|
#9 |
![]() Join Date: Jan 2005
Posts: 6
![]() |
Have understod where the problem was.
I had my Apache config with iso-8859-1. Needed to changed this to UTF-8 This means some older browersers might not interpet the site correctly but for this site, that is not an issue. When changing to UTF-8 all content and the swedish.php (language) was now still iso-8859-1 encoded. The language file was merly to change to encoding UTF-8 (used gvim) and then all autogenerated content was ok. The site I just is setting up, do not have much content yet so.....I did the rest the hard way. Opened each document - changed the language specific characters - Saved. --urk--! All new content will of course be UTF-8 encoded from this point. This is not something you do with a full site in production and I assume there is a way to solve this in a autometed way. Anyway, the site is now UTF-8 and the newsfeed works as it is supposed to. /Magnus |
|
|
|
|
|
#10 |
![]() Join Date: Oct 2004
Posts: 30
![]() |
Took you some time that one... I'm having the same issue, but I'm on a shared server and unable to change apache settings... Advice anyone?
Sorry for crossposting, google helped me find this thread as the forum search engine is not so good. Original post: http://forum.mamboserver.com/showthr...ht=rss+charset |
|
|
|
|
|
#11 |
![]() Join Date: Jun 2005
Posts: 3
![]() |
Im having same problem with Nomasis, my english rss news show up like this: compound's instead of: compound's.
I have version 4.5.2 and I understood that this would have been fixed, but still I'm having that problem. Here is copy of my rss.php, I think all is in order there? // removes all formating from the intro text for the description text $item_description = $row->introtext; $item_description = mosHTML::cleanText( $item_description ); $item_description = html_entity_decode( $item_description ); Any word of advice? |
|
|
|
|
|
#12 | |
![]() Join Date: May 2005
Posts: 11
![]() |
Quote:
|
|
|
|
|
|
|
#13 |
![]() Join Date: Sep 2005
Posts: 6
![]() |
Hi,
I think I've identified the problem however I'm not sure how to resolve it! It would appear that the code is converting ' to '. I'm a little unsure how to resolve this issue and any advise would be appreciated. Thanks, Andy |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|