encodage utf-8 et apparition <br /> inconnu !

Invité
Invité n'ayant pas de compte PHPfrance

22 juil. 2008, 14:29

bonjour a tous,

mon doctype:

Code : Tout sélectionner

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head>
mon include:

Code : Tout sélectionner

<div id="info"><?php include("info.php");?></div>
lorsque j'encode mon document "info.php" en utf-8, une espace s'insère juste avant l'include (qui disparait si mon doc est en iso).
si je mate sous firebug, il y a juste un espace visible(environ deux bons <br />), aucun autre element.

voila si quelqun connait ce probleme ! :D

Mammouth du PHP | 1353 Messages

22 juil. 2008, 15:46

Il te faut encoder tout tes fichiers en UTF-8 SANS BOM
Fais une recherche avec BOM sur ce forum ou sur google tu auras plus de détails, mais je pense que ton problème vient de la...
Tell me and I forget. Teach me and I remember. Involve me and I learn.

Invité
Invité n'ayant pas de compte PHPfrance

22 juil. 2008, 16:10

Inconnu au bataillon ce truc , en plus j avais bien cette option dans notepad++. :roll:
merci en tout cas... :D