1 Reply Latest reply on Sep 14, 2006 8:29 AM by FrodeHansen

    Problem when setting encoding to ISO-8859-1

    FrodeHansen Level 1
      Hi. Is there something I'm missing when it comes to setting encoding? Here are the code in the mxml:

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      ...
      </Application>

      In the html-template I'm setting:
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      ...

      The code for sending data from the app:

      <mx:HTTPService
      id="service"
      url="encoding.jsp"
      method="post"
      showBusyCursor="true"
      result="onResult(event)"
      resultFormat="xml"
      contentType="application/xml"
      fault="onFault(event)"
      useProxy="false" />


      public function send():void {
      var xml:XML = <Data>{data.text}</Data>;
      service.send(xml);
      }

      But still the respons jsp I have made says it receives the data in UTF-8 format? What am I doing wrong?

      Servercode:
      don't work: BufferedReader reader = new BufferedReader( new InputStreamReader( is ) );
      work: BufferedReader reader = new BufferedReader( new InputStreamReader( is, "UTF-8") );