Bonjour,
Je n'arrive pas à afficher un texte correctement avec des accents.
Dès qu'il y a un accent, le texte ne s'affiche plus.

merci de votre aide

voici mon script php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
$listeIcones = liste_icones_from_carte(1,true);
$nbIcones = count($listeIcones);
$i=0;
$liste="";
if($nbIcones > 0){
	foreach($listeIcones as $icone){
		$liste.="&id_".$i."=".$icone['icone_id']."&posx_".$i."=".$icone['icone_posx']."&posy_".$i."=".$icone['icone_posy']."&icone_".$i."=".$icone['icone_type']."&titre_".$i."=".utf8_encode(stripslashes(ucfirst($icone['icone_titre'])))."&texte_".$i."=".utf8_encode(stripslashes($icone['icone_texte']))."&image_".$i."=".$icone['icone_image'];
		$i++;
	}
	$liste.="&total=".$i."&";
echo $liste;
}
et mon script Flash
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 
liste_lv = new LoadVars();
liste_lv.cible = this;
liste_lv.onLoad = function(success){
	if(success){
		if(this.resultat_0 == "Echec"){
			msgtxt = "Erreur";
		}else{
			liste_txt.html = "ok";
			for(var i=0; i<this.total; i++){
				icone = this["icone_"+i];
				this.cible.attachMovie(icone,"forme"+i,this.cible.getNextHighestDepth());
				this.cible["forme"+i]._x = this["posx_"+i];
				this.cible["forme"+i]._y = this["posy_"+i];
				this.cible["forme"+i].id = this["id_"+i];
				this.cible["forme"+i].titre = this["titre_"+i];
				this.cible["forme"+i].texte = this["texte_"+i];
				this.cible["forme"+i].image = this["image_"+i];
				positionxchamp = this["posx_"+i];
				positionychamp = this["posy_"+i] + 50;
				this.cible["forme"+i].cible = this.cible;
				this.cible["forme"+i].i=i;
 
				//affichage d'une étiquette dynamique du champ titre et du texte
				this.cible["forme"+i].onRollOver = function(){
					_root.etiquette.gotoAndPlay('afficher');
					_root.etiquette.titreIcone = this.titre;
					loadMovie("mediatheque/images/"+this.image, _root.etiquette.mcImage, "POST");
					_root.etiquette.txtIcone = this.texte;
				}
 
				this.cible["forme"+i].onRollOut = function(){
					_root.etiquette.gotoAndPlay('masquer');
					_root.etiquette.titreIcone = '';
				}
			}
		}
	}else{
		liste_txt.htmlText = "Fichier introuvable";
	}
}
liste_lv.load("flash/carte-interactive/carte-select-icones.php");