[Pixlib] FDT encoding

anga andregabriel at free.fr
Sat Jan 27 11:15:11 EST 2007


hi everyone,

sorry, it's not directly a pixlib question, but I presume some of you 
have the answer..

I try to use "<![CDATA[something éçàè]]" with XmlToObject and it doesn't 
work..

after many tests I have find where are the problem :

I use for the first time FDT and it seems only don't work in FDT.

finally trying with this little test code from Flux  ( 'Re: [Pixlib] 
ConfigLoader - 221106 ) :

////////////////////////////////

> var s = "<![CDATA[<b>some text, with accents éèà</b>]]>";
> var x = new XML ( s );

> myText = x.firstChild.nodeValue;

//////////////////////////////////////

I make a Test Class with FDT and with SEPY

///////////////////////////////////////

class Test
{   
    public static function getTxt ( )  :String
    { 
        var s = "<![CDATA[<b>some text, with accents éèà</b>]]>";
        var x = new XML ( s );
        var test = x.firstChild.nodeValue;
       
        return test
    }
}
///////////////////////////////////////

in IDE : myTF.htmlText = Test.getTxt ( ) ;

with SEPY my TextField show : some text, with accents éèà        --> correct
with FDT my TextField show : some text, with accents éèà   --> bad

I thought it was something with encoding and I changed the 'preferences 
: workspace : text file encoding  to UTF-8 (like in SEPY) but it still 
don't work..  :(

is someone could give me some help

thank in advance

anga













-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/pixlib_osflash.org/attachments/20070127/7af896f1/attachment.htm


More information about the Pixlib mailing list