Subversion Repositories Applications.bazar

Rev

Rev 346 | Rev 358 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 346 Rev 352
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: bazar.fonct.rss.php,v 1.102 2007-12-04 09:07:21 alexandre_tb Exp $
22
// CVS : $Id: bazar.fonct.rss.php,v 1.103 2007-12-10 12:59:34 jp_milcent Exp $
23
/**
23
/**
24
* 
24
* 
25
*@package bazar
25
*@package bazar
26
//Auteur original :
26
//Auteur original :
27
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
27
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
28
*@author        Florian Schmitt <florian@ecole-et-nature.org>
28
*@author        Florian Schmitt <florian@ecole-et-nature.org>
29
//Autres auteurs :
29
//Autres auteurs :
30
*@copyright     Tela-Botanica 2000-2006
30
*@copyright     Tela-Botanica 2000-2006
31
*@version       $Revision: 1.102 $
31
*@version       $Revision: 1.103 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 1233... Line 1233...
1233
 
1233
 
1234
	return $res ;
1234
	return $res ;
Line 1235... Line 1235...
1235
}
1235
}
1236
 
1236
 
-
 
1237
function encoder_en_utf8($txt) {
1237
function encoder_en_utf8($txt) {
1238
	// Nous remplaçons l'apostrophe de type RIGHT SINGLE QUOTATION MARK et les & isolées qui n'auraient pas été 
1238
   // Nous remplaçons l'apostrophe de type RIGHT SINGLE QUOTATION MARK
1239
	// remplacées par une entitée HTML.
1239
   $cp1252_map = array("\xc2\x92" => "\xe2\x80\x99" /* RIGHT SINGLE QUOTATION MARK */);
1240
	$cp1252_map = array("\xc2\x92" => "\xe2\x80\x99" /* RIGHT SINGLE QUOTATION MARK */);
Line 1240... Line 1241...
1240
   return  strtr(mb_convert_encoding($txt, 'UTF-8','HTML-ENTITIES'), $cp1252_map);
1241
	return  strtr(preg_replace('/ \x{0026} /u', ' &#38; ', mb_convert_encoding($txt, 'UTF-8','HTML-ENTITIES')), $cp1252_map);
1241
}
1242
}
1242
 
1243
 
-
 
1244
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
1245
*
-
 
1246
* $Log: not supported by cvs2svn $
-
 
1247
* Revision 1.99.2.5  2007-12-10 12:57:34  jp_milcent
-
 
1248
* Correction du problèmes des & non remplacées par des &amp;
-
 
1249
*
-
 
1250
* Revision 1.102  2007-12-04 09:07:21  alexandre_tb
-
 
1251
* Fusion avec la livraison AHA : 4 déc 2007
-
 
1252
*
1243
/* +--Fin du code ----------------------------------------------------------------------------------------+
1253
* Revision 1.99.2.4  2007-12-04 08:58:26  alexandre_tb
1244
*
1254
* modification de styles dans les formulaires
1245
* $Log: not supported by cvs2svn $
1255
*
1246
* Revision 1.101  2007-12-03 15:18:44  jp_milcent
1256
* Revision 1.101  2007-12-03 15:18:44  jp_milcent
1247
* Fusion avec la livraison AHA : 3 décembre 2007
1257
* Fusion avec la livraison AHA : 3 décembre 2007