0 Replies Latest reply on Sep 23, 2010 10:12 AM by JeeMaa

    Bug? HttpService double encodes ampersand entities




      i am a bit surpriced, that i didnt find anything about it. Maybe I do something wrong.

      If i load a xml file from the server with the HttpService, i get the xml file with all Ampersand signs "&" converted in "&" despite its already part of "&".

      So if i load a xml like:


      <xml>We &amp; You</xml>


      HttpService converted the xml to:


      <xml>We &amp;amp; You</xml>


      Usually I use flash to update the xml-files and save them on server. After some savings i get results like:


      <xml>We &amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; You</xml>


      The way i load the files (short version):


      var service:HTTPService = new HTTPService();
      service.url = "...";



      The only way i see is to clean up the loaded xml from " &amp;amp;" to " &amp;" which sounds wrong.

      Do you know that problem? Do you have any ideas?


      ty Jan


      PS: I use a proxy (Service Capture), so i can see the message comming from the server is still with a simple &amp;. If i look at the message.body of the result of the HttpService event i see the ampersand entitie already converted in &amp;amp;. So I conclude a bug in the HTTPService Class.