Ajout fonction de nettoyage pour les chaines utf8
This commit is contained in:
parent
bd30dd70de
commit
b26d00d638
@ -51,17 +51,6 @@ function cleanutf8($string) {
|
|||||||
$transliterate = TRUE;
|
$transliterate = TRUE;
|
||||||
$output = $string;
|
$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
|
// Remove accents and transliterate
|
||||||
if ($transliterate) {
|
if ($transliterate) {
|
||||||
static $i18n_loaded = false;
|
static $i18n_loaded = false;
|
||||||
@ -79,7 +68,6 @@ function cleanutf8($string) {
|
|||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Fixes the encoding to uf8
|
// Fixes the encoding to uf8
|
||||||
function fixEncoding($in_str)
|
function fixEncoding($in_str)
|
||||||
{
|
{
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
[default]
|
||||||
№ = "N°"
|
№ = "N°"
|
Loading…
x
Reference in New Issue
Block a user