19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: bazar.fonct.rss.php,v 1.99 2007-11-05 10:17:19 alexandre_tb Exp $ |
// CVS : $Id: bazar.fonct.rss.php,v 1.99.2.1 2007-11-30 14:14:36 jp_milcent Exp $ |
/** |
* |
*@package bazar |
28,7 → 28,7 |
*@author Florian Schmitt <florian@ecole-et-nature.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2006 |
*@version $Revision: 1.99 $ |
*@version $Revision: 1.99.2.1 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
766,7 → 766,7 |
$xml .= "\r\n "; |
$xml .= XML_Util::createStartElement ('item'); |
$xml .= "\r\n "; |
$xml .= XML_Util::createTag ('title', null, utf8_encode(html_entity_decode(($ligne['bf_titre'])))); |
$xml .= XML_Util::createTag('title', null, encoder_en_utf8($ligne['bf_titre'])); |
$xml .= "\r\n "; |
$lien=$GLOBALS['_BAZAR_']['url']; |
$lien->addQueryString('action', BAZ_VOIR_FICHE); |
778,7 → 778,7 |
$xml .= XML_Util::createStartElement ('description'); |
$xml .= "\r\n "; |
if ($_GET['action'] != BAZ_VOIR_TOUTES_ANNONCES) { |
$xml .= XML_Util::createCDataSection ( utf8_encode(html_entity_decode(($ligne['bf_description'])))); |
$xml .= XML_Util::createCDataSection(encoder_en_utf8($ligne['bf_description'])); |
} |
$xml .= "\r\n "; |
$xml .= XML_Util::createEndElement ('description'); |
1240,9 → 1240,18 |
return $res ; |
} |
|
function encoder_en_utf8($txt) { |
// Nous remplaçons l'apostrophe de type RIGHT SINGLE QUOTATION MARK |
$cp1252_map = array("\xc2\x92" => "\xe2\x80\x99" /* RIGHT SINGLE QUOTATION MARK */); |
return strtr(mb_convert_encoding($txt, 'UTF-8','HTML-ENTITIES'), $cp1252_map); |
} |
|
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.99 2007-11-05 10:17:19 alexandre_tb |
* correction bug: retrait inorportun de la variable menu dans la globale URL |
* |
* Revision 1.98 2007-10-24 13:27:45 alexandre_tb |
* bug d'affichage multiple lorsqu'il y a +sieurs langues |
* |