# PHP to XML and to Flash with loadVars question

**URL:** <https://forum.kirupa.com/t/php-to-xml-and-to-flash-with-loadvars-question/169508>\
**Category:** programming\
**Created:** [November 16, 2005, 8:25pm UTC](https://forum.kirupa.com/t/php-to-xml-and-to-flash-with-loadvars-question/169508 "2005-11-16T20:25:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beenetto](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@beenetto](https://forum.kirupa.com/u/beenetto)\
**Post date:** [November 16, 2005, 8:25pm UTC](https://forum.kirupa.com/t/php-to-xml-and-to-flash-with-loadvars-question/169508/1 "2005-11-16T20:25:03Z")

</div>

my php script generates an XML answer which gets loaded back to flash into  
a loadVars object. The answer arrives fine but I got all kinds of funky stuff  
and not an XML.

like this:

%3D%220%22%2F%3E%0A%09%09%3Cjatekos%3E%0A%09%09%09%3Cnick%3Eg%EF%BF%BD%20%EF%BF%BDajdina%3C%2Fnick%3E%0A%09%09%09%3Cpontszam%3E100%3C%2Fpontszam%3E%0A%09%09%3C%2Fjatekos%3E%0A%09%09%3Cjatekos%3E%0A%09%09%09%3Cnick%3Eclx%3C%2Fnick%3E%0A%09%09%09%3Cpontszam%3E100%3C%2Fpontszam%3E%0A%09%09%3C%2Fjatekos%3E%0A%09%09%3Cjatekos%3E%0A%09%09%09%3Cnick%3Eewre

and this is how I get it:

highScoreRecive\_lv.onLoad = function(success:Boolean) {  
resp\_txt.text = this;  
};

but the anaswer viewed in html looks like this

\<?xml version=”1.0” encoding=”ISO-8859-2”?\>  
\<valasz\>  
\<statusz kod=”0”/\>  
\<jatekos\>  
\<nick\>clx\</nick\>  
\<pontszam\>120\</pontszam\>  
\</jatekos\>  
\<jatekos\>  
\<nick\>attis\</nick\>  
\<pontszam\>110\</pontszam\>  
\</jatekos\>  
\<jatekos\>  
\<nick\>rifa\</nick\>  
\<pontszam\>90\</pontszam\>  
\</jatekos\>  
\</response\>

anyone could help me with this?  
I hope it’s clear enough
