On Mar 9, 8:41 pm, Erik Corry <[email protected]> wrote: > So it will assume that it is UTF-8 if it is not ASCII. Not all binary > sequences are valid UTF-8 so you can't use this for binary data. > Internally, V8 does not use UTF-8 so this data will be converted to > UC16.
Sorry, i'm confused again. If v8 sees a high bit set, it assumes the data is utf8, changes modes, and then then internally stores the string as uc16? Is that correct? Maybe it's time for me to write a BinaryData class which proxies all bytes as integers. That might be a useful workaround (inefficient as hell, creating Arrays of Integers, but JS isn't about efficiency, is it?). --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
