Encode qui ne fonctionne pas
Bonjour,
J'ai cette erreur qui m’empêche d'avancer en ce moment :
Citation:
charset from http content-type 'US-ASCII' does not match encoding from xml declaration
J'essaye d'encoder alors en UTF-8 mes variables qui sont en ASCII tel que :
Code:
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)); |
Mais voila ce que ca donne 8O
Citation:
avant ASCII apres utilisation de mb_convert_encoding ASCII avec utf8_encode ASCII
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 ... :(
quelqu'un a t'il déjà été confronté à ça ?