[Fusionforge-commits] r11079 - trunk/src/common/docman/engine

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Oct 19 21:44:40 CEST 2010


Author: lolando
Date: 2010-10-19 21:44:40 +0200 (Tue, 19 Oct 2010)
New Revision: 11079

Modified:
   trunk/src/common/docman/engine/parser_text.inc.php
Log:
Let iconv do the work of removing accents, in another place too

Modified: trunk/src/common/docman/engine/parser_text.inc.php
===================================================================
--- trunk/src/common/docman/engine/parser_text.inc.php	2010-10-19 19:32:58 UTC (rev 11078)
+++ trunk/src/common/docman/engine/parser_text.inc.php	2010-10-19 19:44:40 UTC (rev 11079)
@@ -58,7 +58,7 @@
 function suppression_diacritics($text)
 {
 	$b = $text;
-	$b = strtr($b, "éêèëàâäîïùûüôöç", "eeeeaaaiiuuuooc");
+	$b = iconv ('UTF-8', 'US-ASCII//TRANSLIT', $b) ;
 	$b = strtr($b, "\t\r\n?.*'\":;,#![]()", "                 ");
 	return $b;
 }




More information about the Fusionforge-commits mailing list