Thanks for checking into it, Gordon. Too bad there's no "easy" answer, but I'll stick with UTF-8 on the basis of ByteArray's method returning it.
On Tue, Oct 21, 2008 at 1:30 PM, Gordon Smith <[EMAIL PROTECTED]> wrote: > OK, I got the answer from some Player engineers. Unfortunately, the > Player actually uses both UTF-8 and UTF-16 at various times to represent > strings internally. It does a good amount of conversion back and forth due > to the way it needs to interact with the various operating systems that it > runs on. > > > > Gordon Smith > > Adobe Flex SDK Team > > > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Gordon Smith > *Sent:* Tuesday, October 21, 2008 11:01 AM > *To:* [email protected] > *Subject:* RE: [flexcoders] what is a String? (default encoding question) > > > > > Always frustrating when I bump up against the wall where open source > becomes closed. > > > > I wrote a Player engineer and asked but haven't gotten a reply. > > > > The Taramin AS3 engine is open-source as part of the Mozilla project. I > don't have time to look at the code to answer your question, but maybe you > can take a look yourself. > > > > Gordon Smith > > Adobe Flex SDK Team > > > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > Behalf Of *Pan Troglodytes > *Sent:* Tuesday, October 21, 2008 7:39 AM > *To:* [email protected] > *Subject:* Re: [flexcoders] what is a String? (default encoding question) > > > > Thousands of rows of columnar data. > > Doesn't really matter, though. The help for both readUTF and readMultiByte > says: > > Returns > String — UTF-8 encoded string. > > So no matter what I do, it appears the ByteArray can only return UTF-8 > anyway. Considering this, I might as well write it to the file in UTF-8. > Of course, I suppose that internally ByteArray could read it in as something > different, then convert it to UTF-8. So that it would read my UTF-8, > convert it to something else, then convert it back to UTF-8 and return it. > That would suck but it's impossible to tell without input from the people > who can actually see that code. Always frustrating when I bump up against > the wall where open source becomes closed. > > > On Tue, Oct 21, 2008 at 6:09 AM, Tom Chiverton < > [EMAIL PROTECTED]> wrote: > > On Friday 17 Oct 2008, Pan Troglodytes wrote: > > The reason I ask is because I'm reading some string data in from a binary > > file and > > Some ? > A large amount ? How large ? > > -- > Tom Chiverton > Helping to centrally deploy high-end dynamic fourth-generation open-source > action-items > > > > **************************************************** > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and > Wales under registered number OC307980 whose registered office address is at > Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A > list of members is available for inspection at the registered office. Any > reference to a partner in relation to Halliwells LLP means a member of > Halliwells LLP. Regulated by The Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and > may be confidential or legally privileged. If you are not the addressee you > must not read it and must not use any information contained in nor copy it > nor inform any person other than Halliwells LLP or the addressee of its > existence or contents. If you have received this email in error please > delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. > > ------------------------------------ > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > http://groups.yahoo.com/group/flexcoders/ > > > > > > > > -- > Jason > > > -- Jason

