[SPIP Zone] r4220 - /_plugins_branche_stable_/_spip_1_9_0_/comarquage/comarquage_filtres.php

Author: cedric@yterium.com
Date: Tue Jul 25 21:43:04 2006
New Revision: 4220

Log:
s'adapter au charset du site qui n'est pas forcement utf-8

Modified:
    _plugins_branche_stable_/_spip_1_9_0_/comarquage/comarquage_filtres.php

Modified: _plugins_branche_stable_/_spip_1_9_0_/comarquage/comarquage_filtres.php

--- _plugins_branche_stable_/_spip_1_9_0_/comarquage/comarquage_filtres.php (original)
+++ _plugins_branche_stable_/_spip_1_9_0_/comarquage/comarquage_filtres.php Tue Jul 25 21:43:04 2006
@@ -76,6 +76,10 @@
           $targs[$extract[1]] = $extract[2];
       }
       $out = comarquage_run($targs);
+ if ($GLOBALS['meta']['charset']!='utf-8'){
+ include_spip('inc/charsets');
+ $out = importer_charset($out,"utf-8");
+ }
       $texte = str_replace($occurence[0],$out,$texte);
     }
   }