probleme de caractere

Petit nouveau ! | 9 Messages

02 déc. 2008, 16:33

exemple de la page index :

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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="include/style_form.css" type="text/css"> <title>CIEC Centre d'information d'&eacute;tude et de conseil</title> <? include "include/referencement.php" ?> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <script language="javascript"> //1) nom des champs à vérifier var fieldRequired = Array("nom", "prenom", "adresse", "cp", "ville", "tel", "email"); //2) phrase de la boite de dialogue correspondant var fieldDescription = Array(" votre nom", " votre prénom", " votre adresse", " votre code postal", " votre ville", " votre numéro de téléphone", "Votre adresse mail"); </script> <? include "tete.php" ?> <div class="div_general" > <table width="200" height="419" border="0"> <tr> <td height="302"><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','778','height','300','src','swf/index','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','menu','false','movie','swf/index' ); //end AC code </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="778" height="300"> <param name="movie" value="swf/index.swf" /> <param name="quality" value="high" /> <param name="menu" value="false" /> <embed src="swf/index.swf" width="778" height="300" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" menu="false"></embed> </object> </noscript></td> </tr> <tr> <td height="20" align="center"> <div class="div_accueil"><? include "index_inc.php" ?></div> <div align="center"> <? include "pied.php" ?> </div></td> </tr> <tr> <td height="70">&nbsp;</td> </tr> </table> </div> </body> </html>
la page qui est incluse dedant index_inc :

Code : Tout sélectionner

<style type="text/css"> <!-- body { margin-top: 0px; } .Style18 {color: #FFFFFF} .Style19 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color: #FFFFFF; } .Style20 {font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; } .Style24 { font-size: 11px } .Style25 {font-family: Verdana, Arial, Helvetica, sans-serif} .Style27 {font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } .Style28 {font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; } --> </style><table width="769" height="527" border="0" align="center" cellpadding="0" cellspacing="2"> <tr> <td width="765" height="140" align="left" valign="middle" background="img/bg_assur_defiscal.png"><table width="631" height="140" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="227" height="140"><img src="img/trans.png" width="225" height="118" /></td> <td width="404"><p class="Style20"><span class="Style24"><br /> Vous payez trop d'impÙts ? Profitez des avantages <strong>C.I.E.C</strong> et rÈduisez vos impÙts gr‚ce aux conseils de nos experts en investissement locatif, une Etude en ligne, Des rÈponses instantannÈes et Sans engagement. Vous souhaitez un investissement locatif vous assurant des revenus rÈguliers et un allËgement de vos impÙts†? Nous vous aidons ‡ construire votre projet. Le savoir-faire <strong>C.I.E.C</strong> vous guide en matiËre de dÈfiscalisation et vous conseille sur mesure, sur le cadre fiscal le plus adaptÈ ‡ votre profil. <a href="defiscalisation.php">plus d'infos</a></span><br /> </p> </td> </tr> </table></td> </tr> <tr> <td height="127" valign="bottom"><table width="765" height="164" border="0" cellpadding="0" cellspacing="0" id="Tableau_01"> <tr> <td rowspan="4"> <img src="img/mutuelle_01.gif" width="186" height="163" alt=""></td> <td colspan="2"> <img src="img/mutuelle_02.gif" width="530" height="29" alt=""></td> <td>&nbsp;</td> </tr> <tr> <td colspan="2" bgcolor="#5F8BE2"><p align="left" class="Style20"><span class="Style24"><strong>La mutuelle santÈ</strong>†devient indispensable,†la sÈcuritÈ sociale se dÈsengageant depuis des annÈes sur un certain nombre de dÈpenses de santÈ (mÈdicaments, lunettes, optique, hospitalisationÖ) etc. Parmi les compagnies d'assurance et mutuelles diverses,†le choix d'une†mutuelle peut s'avÈrer†compliquÈe.</span></p> <p align="left" class="Style28"><strong>C.I.E.C</strong> vous aide ‡ trouver la mutuelle qui vous convient selon vos besoins.</p></td> <td> <img src="img/mutuelle_05.gif" width="49" height="99" alt=""></td> </tr> <tr> <td rowspan="2"> <img src="img/mutuelle_06.gif" width="493" height="35" alt=""></td> <td colspan="2"> <img src="img/mutuelle_07.gif" width="86" height="16" alt=""></td> </tr> <tr> <td colspan="2"> <img src="img/mutuelle_08.gif" alt="" width="86" height="19" border="0" usemap="#Mutuelle"></td> </tr> <tr> <td> <img src="images/spacer.gif" width="186" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="493" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="37" height="1" alt=""></td> <td> <img src="images/spacer.gif" width="49" height="1" alt=""></td> </tr> </table></td> </tr> <tr> <td height="194" valign="bottom" background="img/bg_assur.png"><table width="648" height="186" border="0" align="center" cellpadding="0" cellspacing="10"> <tr> <td width="200" height="19"><img src="img/bg_assur_hb.png" width="200" height="38" border="0" usemap="#Map" /></td> <td width="200"><img src="img/bg_assur_dc.png" width="200" height="38" border="0" usemap="#Map2" /></td> <td width="200"><img src="img/bg_assur_hb.png" width="200" height="38" border="0" usemap="#Map3" /></td> </tr> <tr> <td height="17" valign="top"><div align="center"><span class="Style19">Assurance Habitation</span></div></td> <td valign="top"><div align="center"><span class="Style19">Assurance DÈcËs</span></div></td> <td valign="top"><div align="center"><span class="Style19">Assurance Auto/Moto</span></div></td> </tr> <tr> <td height="91" valign="top"><div align="center" class="Style24"> <div align="justify" class="Style25"><span class="Style18">Vous avez en projet d'assurer votre habitation, trouvez l'assurance la plus intÈressante ! Remplissez </span><a href="assurance_habitation.php">notre formulaire</a> <span class="Style18">afin d'acceder ‡ nos offres en Assurance Habitation adaptÈes ‡ vos besoins !</span></div> </div></td> <td valign="top"><div align="justify" class="Style27"><span class="Style18">Vous avez en projet de souscrire ‡ une assurance dÈcËs, trouvez l'assurance la plus intÈressante ! Remplissez</span> <a href="assurance_deces.php">notre formulaire</a> <span class="Style18">afin d'acceder ‡ nos offres en Assurance DÈcËs adaptÈes ‡ vos besoins !</span></div></td> <td valign="top"><div align="justify" class="Style27"><span class="Style18">Vous avez en projet d'assurer votre vÈhicule, trouvez l'assurance la plus intÈressante adaptÈes ‡ vos besoins ! Remplissez notre formulaire afin d'acceder ‡ nos offres en Assurance</span> <a href="assurance_auto.php">Auto</a> <span class="Style18">/</span> <a href="assurance_moto.php">Moto</a> <span class="Style18">!</span></div></td> </tr> </table></td> </tr> <tr> <td height="19">&nbsp;</td> </tr> </table> <map name="Mutuelle" id="Mutuelle"> <area shape="rect" coords="9,1,80,16" href="mutuelle_sante.php" alt="Mutuelle santÈ" /> </map> <map name="Map" id="Map"><area shape="rect" coords="5,2,198,37" href="assurance_habitation.php" /> </map> <map name="Map2" id="Map2"><area shape="rect" coords="3,2,196,35" href="assurance_deces.php" /> </map> <map name="Map3" id="Map3"><area shape="rect" coords="4,4,195,33" href="assurance_auto.php" /> </map>

ViPHP
ViPHP | 3607 Messages

02 déc. 2008, 16:37

Ton fichier inclu est corrompu, je sais pas par quoi, mais en tout cas, tu vois toi même que les accents et autres entités ne sont pas correctements formées...
Récrer le en retapanta les accents à la main, et en vérifiant que DW est bien en utf8

Petit nouveau ! | 9 Messages

02 déc. 2008, 16:43

si je rettape tous les accent et compagnie à la main, sa reglerais pas le probleme car il y'a beaucoup de formulaire, les gens vont tapper les e accent, si tu vois ce que je veux dire,
le site est en ligne pour le teste,
voici le lien http://www.ciec-invest.com/rachat_credit.php

ViPHP
ViPHP | 3607 Messages

02 déc. 2008, 16:47

En fait la page n'est pas reconnu comme étant de l'utf-8, firefox l'affiche en ISO, c'est donc que ta balise meta est mauvaise...
ou comme je le suppose, que c'est à cause des autres balises link et meta dans le head qui ne sont pas fermées correctement...
En tout cas fait le test sous firefox, si tu change l'encodage en utf8, le site s'affiche bien...

Petit nouveau ! | 9 Messages

02 déc. 2008, 17:25

j'ai trouvé, sa marche, ke partage avec vous bien sur,
j'ai transformer l'encodage des pages incluse en ISO europe central, et sa a marcher
merci a vous les gars

Eléphant du PHP | 353 Messages

02 déc. 2008, 17:54

Pense à marquer ton topic comme résolu alors.

On a donc le problème qui est toujours le même, il faut penser à passer l'intégralité des pages et des données sql dans le même encodage.

Bonne chance pour la suite.

Petit nouveau ! | 9 Messages

02 déc. 2008, 21:48

j'y penserais merci

[Note : ce message a été posté de manière anonyme avant d'être réattribué à son auteur]