Ajout fonction de nettoyage pour les chaines utf8

This commit is contained in:
Michael RICOIS 2009-04-23 06:54:15 +00:00
parent bd30dd70de
commit b26d00d638
2 changed files with 1 additions and 12 deletions

View File

@ -51,17 +51,6 @@ function cleanutf8($string) {
$transliterate = TRUE;
$output = $string;
static $specials_loaded = false;
static $specials = array();
if (!$specials_loaded) {
$path = realpath(dirname(__FILE__));
if (is_file($path .'/special.txt')) {
$specials = parse_ini_file($path .'/special.txt');
}
$specials_loaded = true;
}
$output = strtr($output, $specials);
// Remove accents and transliterate
if ($transliterate) {
static $i18n_loaded = false;
@ -79,7 +68,6 @@ function cleanutf8($string) {
return $output;
}
// Fixes the encoding to uf8
function fixEncoding($in_str)
{

View File

@ -1 +1,2 @@
[default]
№ = "N°"