Skip to content

Commit

Permalink
Let iconv do the work of removing accents, in another place too
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://scm.fusionforge.org/srv/svn/fusionforge/trunk@11079 9d84d37e-dcb1-4aad-b103-6f3d92f53bf6
  • Loading branch information
lolando committed Oct 19, 2010
1 parent 780405b commit e046886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/docman/engine/parser_text.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function print_list ($list)
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;
}
Expand Down

0 comments on commit e046886

Please sign in to comment.