Do you mind asking around?  I'd hate to base my conclusions on timing tests
rather than just being told by the people who write the code.  Thanks!

On Fri, Oct 17, 2008 at 7:08 PM, Gordon Smith <[EMAIL PROTECTED]> wrote:

>    I think AS3 uses UTF-16 internally, but I'm not sure about that, and it
> might change in the future. I suggest that you do some timing tests to see
> what's fastest.
>
>
>
> - Gordon
>
>
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Pan Troglodytes
> *Sent:* Friday, October 17, 2008 12:49 PM
> *To:* flexcoders
> *Subject:* [flexcoders] what is a String? (default encoding question)
>
>
>
> How is a string represented internally in Flex?  It never actually says it
> in the help for String.  Is it UTF-8?  I think this because because mxml
> uses utf-8 as the encoding in the ?xml directive, ByteArray seems to treat
> utf-8 specially, and ByteArray.readMultiByte says the return value is a
> utf-8 encoded string.
>
> The reason I ask is because I'm reading some string data in from a binary
> file and I'm trying to figure out the most CPU efficient way to put it in
> the file.  I want it to be in the file in the same encoding that won't
> require Flex to translate from one encoding to another when storing it in a
> String variable.
>
> Thanks.
>
> --
> Jason
>
>   
>



-- 
Jason

Reply via email to