Can't you just skip the first three characters and read from there? Otherwise, 
you could try removing the BOM before loading the stream (maybe by reading it 
first as a ByteArray?). I think there's some ActionScript code on this page to 
do that: 

http://www.xs4all.nl/~mechiel/projects/bomstrip/

--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Wed, 2/18/09, Andrew <roly...@gmail.com> wrote:
From: Andrew <roly...@gmail.com>
Subject: [flexcoders] Reading an UTF-8 document
To: flexcoders@yahoogroups.com
Date: Wednesday, February 18, 2009, 10:19 PM











    
            Please forgive me if the is a post about this already but i can't 
seem

to find it.



I am creating an AIR app to convert characters into their HTML entity,

hex and dec value and I have just come across an issue.  I am reading

in xml files which contain the data, these files are saved in a UTF-8

format.



When I open it using a Filestream it stops after the first 3

characters "ÿþ<".  I know that these characters are the start of a

unicode document, but I can't figure out why it is stopping reading

the file there.



Any help would be greatly appreciated.




 

      

    
    
        
         
        
        








        


        
        


      

Reply via email to