Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Caractères étranges 

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
topolofi
Smarty Rookie


Joined: 16 Jun 2006
Posts: 27

PostPosted: Wed Jun 21, 2006 12:38 pm    Post subject: Caractères étranges  Reply with quote

J'ai un programe index.php qui fait un include :

include("../files/lire_t_civilite.php");

le programme appelé est :

<?php
$req_civilite = ("SELECT civilite_id,libelle from ".$prefixe_table." t_civilite WHERE civilite_id=$maj_civilite_id");
$result = mysql_query($req_civilite) or die ("Exécution de la requête $req_civilite impossible");
$t_civilite = mysql_fetch_array($result);
$civilite_id = $t_civilite["civilite_id"];
$civilite_lib = $t_civilite["libelle"];
?>

Toute cela fonction sauf que sur ma page html d'affichage je me retrouve avec une suite de caratères "" et que dans mon source j'ai :

<tr class='t_cell'>
<td class='t_titre'><a href="modifier_majeur.php?id_maj=1">Modifier</a></td>

<td class='t_titre'><a href="#null" onclick="javascript:if(confirm('Etes-vous sûr de vouloir supprimer ce majeur ?')) document.location.replace('index.php?action=delete&id_maj=1');">Supprimer</a></td>
<td class='t_cell'><input type="hidden" name="id_maj" value="1">3022</td>
<td class='t_cell'>Mademoiselle</td>
<td class='t_cell'>AROUM</td>
<td class='t_cell'>Aline</td>

</tr><tr class='t_cell'>

<td class='t_titre'><a href="modifier_majeur.php?id_maj=2">Modifier</a></td>
<td class='t_titre'><a href=".....

Si j'insère mon code source dans index.php à la place de faire un include, ces caratères  disparaissent.

Une idée sur ce phénomènes étrange ?

Merci d'avance
Back to top
View user's profile Send private message
bonvga
Smarty Rookie


Joined: 17 Mar 2005
Posts: 6

PostPosted: Wed Jun 21, 2006 9:43 pm    Post subject: Reply with quote

hello,

ca c'est un probleme d'encodage de tes fichiers. je pense que tu edites tes templates en unicode. ton serveur web doit certainement retourner de l'iso. iso versus unicode et c'est la guerre Smile

quel éditeur texte utilses-tu ? quelle est l'encodage par defaut de cet éditeur ?
Back to top
View user's profile Send private message Visit poster's website
topolofi
Smarty Rookie


Joined: 16 Jun 2006
Posts: 27

PostPosted: Thu Jun 22, 2006 3:50 pm    Post subject: Merci Reply with quote

J'utilise Dreamweaver MX comme éditeur;

Toutes mes pages ont dans le header : <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

J'ai paramétrer utf-8 par défaut lorsque je crée une nouvelle page.

J'ai effectivement d'autres problèmes avec les accents aussi bien pour les contantes que pour les données.

Une idée ?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP