W3c validator bug avec php

Fermé
patamob - 31 oct. 2010 à 22:44
 patamob - 31 oct. 2010 à 22:49
Bonjour,

Bonjour à tous,

J'ai 3 fichiers.
un fichier accueil.php
un fichier datas.php
un un fichier pieddepage.php

dans datas.php j'ai ça :

$pieddepage=file_get_contents('pieddepage.php');



dans accueil.php, j'ai donc écrit
<?php echo $pieddepage; ?>


et mon pieddepage.php contient simplement un paragraphe html et une div

J'ai besoin d'utiliser mon pieddepage sur plusieurs pages et je n'ai pas envie de le coder directement dans datas.php

or quand je passe accueil.php au W3C validator, on me dit qu'il n'arrive pas à lire le fichier, à priori il y a un caractère pas UFT-8 là dedans...

Sorry, I am unable to validate this document because on line 155 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.

The error was: utf8 "\xE9" does not map to Unicode

si vous avez des idées...



A voir également:

1 réponse

résolu :
en fait j'avais un "à" dans mon pied de page qui passait mal;
remplacé par à et ça marche.
1