diff --git a/library/framework/fwk.php b/library/framework/fwk.php index 25a0d9a4..77b0242b 100644 --- a/library/framework/fwk.php +++ b/library/framework/fwk.php @@ -127,18 +127,13 @@ } function prepareString($str) { - $tabReplace=array(); - for($c=0;$c<32; $c++) - $tabReplace[''.chr($c)]=''; - for($c=127;$c<256; $c++) - $tabReplace[''.chr($c)]=''; - return strtr( - strtr(htmlentities(utf8_decode(strtr(strtr($str, 'àáâãäåæçèéêëìíîïðñòóôõöùúûüýÿÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜݟ…‘‹', - "aaaaaaaceeeeiiiionooooouuuuyyAAAAAAACEEEEIIIIONOOOOOUUUUYY.''"), array('œ'=>'oe'))), ENT_QUOTES, 'ISO-8859-1'),array('€'=>'€','’'=>'"')), - $tabReplace); - //return */ - //return utf8_encode($str); + $tabReplace = array( + 'œ' => "oe", + ''.chr(160) => '', + ); + + return strtr($str,$tabReplace); }