how to read xml from server in different encoding?

LinNnDi

New Member
how to read xml file in Flash Builder from server with windows-1251 encoding (cyrillic)is there way to convert it to utf-8 encodingP.S. xml url is http://allods.mail.ru/newsrss.php?line=newsmain.mxml code:\[code\]<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:newsrss="services.newsrss.*"><fx:Script><![CDATA[ import mx.collections.ArrayCollection; import mx.events.FlexEvent; import valueObjects.Item; private var line:String = "news";protected function list_creationCompleteHandler(event:FlexEvent):void { getDataResult.token = newsrss.getData(line); } ]]></fx:Script><fx:Declarations> <s:CallResponder id="getDataResult"/> <newsrss:Newsrss id="newsrss" /></fx:Declarations><s:List id="list" x="10" y="10" width="780" height="460" creationComplete="list_creationCompleteHandler(event)" labelField="title"><s:AsyncListView list="{getDataResult.lastResult}"/></s:List></s:Application>\[/code\]
 
Back
Top