Titre du sujet : Re: Problème charset `latin' par Cesagonchu sur 28/08/2013 09:13:19
Citation :leozald a écrit : Avertissement: htmlspecialchars() [function.htmlspecialchars]: charset `latin' not supported, assuming iso-8859-1 dans le fichier /class/module.textsanitizer.php - ligne 485
Que trouves-tu à la ligne 485 du fichier /class/module.textsanitizer.php ?
EDIT : Si tu as Xoops 2.4.2, tu as ce code aux environs de cette ligne :
function htmlSpecialChars($text, $quote_style = ENT_QUOTES, $charset = 'ISO-8859-1', $double_encode = true)
{
// return preg_replace('/&/i', '&', htmlspecialchars($text, ENT_QUOTES));
if (version_compare(phpversion(), '5.2.3', '>=')) {
$text = htmlspecialchars($text, $quote_style, $charset, $double_encode);
} else {
$text = htmlspecialchars($text, $quote_style);
}
return preg_replace(array('/&/i' , '/ /i'), array('&' , ' '), $text);
}
Si je ne me trompe pas, l'erreur t'indique que tu as un module en charset Latin au lieu d'être en ISO-8859-1.
|