Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 351 → Rev 352

/trunk/bibliotheque/bazar.fonct.rss.php
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.102 2007-12-04 09:07:21 alexandre_tb Exp $
// CVS : $Id: bazar.fonct.rss.php,v 1.103 2007-12-10 12:59:34 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.102 $
*@version $Revision: 1.103 $
// +------------------------------------------------------------------------------------------------------+
*/
 
1235,14 → 1235,24
}
 
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);
// Nous remplaçons l'apostrophe de type RIGHT SINGLE QUOTATION MARK et les & isolées qui n'auraient pas été
// remplacées par une entitée HTML.
$cp1252_map = array("\xc2\x92" => "\xe2\x80\x99" /* RIGHT SINGLE QUOTATION MARK */);
return strtr(preg_replace('/ \x{0026} /u', ' &#38; ', mb_convert_encoding($txt, 'UTF-8','HTML-ENTITIES')), $cp1252_map);
}
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.99.2.5 2007-12-10 12:57:34 jp_milcent
* Correction du problèmes des & non remplacées par des &amp;
*
* Revision 1.102 2007-12-04 09:07:21 alexandre_tb
* Fusion avec la livraison AHA : 4 déc 2007
*
* Revision 1.99.2.4 2007-12-04 08:58:26 alexandre_tb
* modification de styles dans les formulaires
*
* Revision 1.101 2007-12-03 15:18:44 jp_milcent
* Fusion avec la livraison AHA : 3 décembre 2007
*