Anicky of Micropole Lyon Pole web
3/26/2016 - 5:33 PM

Convertit un texte en UTF-8.

Convertit un texte en UTF-8.

/**
 * Convertit un texte en UTF-8.
 * @param string $texte Le texte à convertir
 * @return string Le texte converti
 */
function utils_convert_utf8($texte) {
    return mb_convert_encoding($texte, 'HTML-ENTITIES', 'UTF-8');
}