includes/framework/frameworkClasses/stringObject.class.php
function encodeToUTF8($str)
    {
        $encodage = mb_detect_encoding($str, "UTF-8, ISO-8859-1, ISO-8859-15, windows-1252", true);
        $str_utf8 = mb_convert_encoding($str, "UTF-8", $encodage);
        return $str_utf8;
    }
function encodeToUTF8($str)
    {
        $encodage = mb_detect_encoding($str, "UTF-8, ISO-8859-1, ISO-8859-15, windows-1252", true);
        $str_utf8 = mb_convert_encoding($str, "UTF-8", $encodage);
        return $str_utf8;
    }
function encodeToUTF8 ( $ str ) { $ encodage = mb_detect_encoding ( $ str , "UTF-8, ISO-8859-1, ISO-8859-15, windows-1252" , true ) ; $ str_utf8 = mb_convert_encoding ( $ str , "UTF-8" , $ encodage ) ; return $ str_utf8 ; }
Fonction d'encodage en utf8 a partir d'autre encodage , pratique => detection

@param string $str Chaine à encoder

@return string
Fonction d encodage en utf8 a partir d autre encodage pratique = > detection