Bonjour,
J'ai cette erreur qui m’empêche d'avancer en ce moment :
J'essaye d'encoder alors en UTF-8 mes variables qui sont en ASCII tel que :charset from http content-type 'US-ASCII' does not match encoding from xml declaration
Mais voila ce que ca donne
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 $test = "coucouTestEncoding"; echo 'avant '. mb_detect_encoding($test); $test = mb_convert_encoding($test, "UTF-8", mb_detect_encoding($test)); echo 'apres utilisation de mb_convert_encoding '. mb_detect_encoding($test); echo 'avec utf8_encode ' . mb_detect_encoding(utf8_encode($test));
Par consequent la fonction mb_detect_encoding marche tres bien et me retourne l'encodage actuel alors que les differentes conversions ne fontionnent pas du tout ...avant ASCII apres utilisation de mb_convert_encoding ASCII avec utf8_encode ASCII
quelqu'un a t'il déjà été confronté à ça ?
Partager