[FLASH MX2004] Pb apostrophe / passage de php a flash en xml
Bonjour,
Voila le code php:
Code:
1 2 3 4 5 6 7 8
| <?php
$xml="<?xml version='1.0' encoding='UTF-8' ?>";
$xml.='<contact>';
$xml.="<user1>apostrophe' E accent aigu é</user2>";
$xml.='<user2>rien</user2>';
$xml.='</contact>';
echo $xml
?> |
le code actionscript:
Code:
1 2 3 4 5 6 7 8
| php=new XML();
php.ignoreWhite=true;
php.load("xml_test2.php");
_root.stop();
php.onLoad=function(){
tt.text=this.firstChild.childNodes[0].childNodes.toString();
_root.play();
} |
et ca donne ca (tt est un textInput):
Citation:
apostrophe' E accent aigu é
d'un coté, ca affiche correctement un accent, mais pas du tout une simple apostrophe !
Est-ce que qqu'un peut m'aider ?
merci!