Updated code:- <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="onAppCreationComplete()"> <mx:Script> <![CDATA[ import mx.rpc.http.HTTPService; import mx.rpc.events.ResultEvent;
private var httpService:HTTPService; private function onAppCreationComplete ():void { httpService = new HTTPService (); httpService.addEventListener(ResultEvent.RESULT, httpServiceResultHandler); httpService.resultFormat = HTTPService.RESULT_FORMAT_OBJECT; httpService.url = " http://www.w3.org/2001/06/utf-8-test/UTF-8-demo.xml"; httpService.send (); } private function httpServiceResultHandler (event:ResultEvent):void { console.text = String (event.result.doc); } ]]> </mx:Script> <mx:TextArea id="console" width="100%" height="100%"/> </mx:Application> On 10/31/07, Abdul Qabiz <[EMAIL PROTECTED]> wrote: > > I just tried to load one of W3C UTF-8 tests, it seems to be working > fine... > > http://www.w3.org/2001/06/utf-8-test/UTF-8-demo.html > > > Flex code (run standalone, you might need a proxy script to load it in > browser):- > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > creationComplete="onAppCreationComplete()"> > <mx:Script> > <![CDATA[ > import mx.rpc.http.HTTPService; > import mx.rpc.events.ResultEvent; > > private var httpService:HTTPService; > private function onAppCreationComplete ():void > { > httpService = new HTTPService (); > httpService.addEventListener(ResultEvent.RESULT, > httpServiceResultHandler); > httpService.resultFormat = HTTPService.RESULT_FORMAT_TEXT; > httpService.url = " > http://www.w3.org/2001/06/utf-8-test/UTF-8-demo.html"; > httpService.send (); > } > > private function httpServiceResultHandler > (event:ResultEvent):void > { > console.text = String (event.result); > } > ]]> > </mx:Script> > <mx:TextArea id="console" width="100%" height="100%"/> > </mx:Application> > > > > On 10/31/07, Abdul Qabiz <[EMAIL PROTECTED]> wrote: > > > > Flash Player has UTF/Unicode capabilities for sometime. You can just > > request using and pass the string to textarea.. > > > > I am not sure about Unicode sequences though? Someone might confirm > > here.. > > > > -abdul > > > > On 10/30/07, Aditya Kumar <[EMAIL PROTECTED] > wrote: > > > > > > Hi, > > > Can anyone please tell me how to fetch unicode characters through > > > HTTPService and display the same in a TextArea Component. > > > while sending the unicode characters i use contentType as UTF-8. What > > > is the procedure while retrieving the same. > > > > > > Thanks & Regards, > > > Aditya. > > > > > > > > > > > > > > -- > > -abdul > > --------------------------------------- > > http://abdulqabiz.com/blog/ > > --------------------------------------- > > > > > -- > -abdul > --------------------------------------- > http://abdulqabiz.com/blog/ > --------------------------------------- > -- -abdul --------------------------------------- http://abdulqabiz.com/blog/ ---------------------------------------