2009/7/1 Stephan Beal <[email protected]>: > > On Wed, Jul 1, 2009 at 8:24 PM, Erik Corry<[email protected]> wrote: >> >> 2009/7/1 [email protected] <[email protected]>: >>> >>> I'm developping an apps around V8 and I'm concerned about speed ... >>> >>> Thus I wonder - what is the internal string format of V8 ? WCHAR, >>> ascii or utf-8 ? >> >> ASCII or WCHAR (16 bit) > > IIRC... according to a post made some months ago: > > http://groups.google.com/group/v8-users/browse_thread/thread/1621beb71d65e6fa/2883be6ddd10cddd > > "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. "
Yes, input can be UTF8 under some circumstances. Internally we use UC16 or sometimes transparently ASCII for efficiency and space saving. -- Erik Corry, Software Engineer Google Denmark ApS. CVR nr. 28 86 69 84 c/o Philip & Partners, 7 Vognmagergade, P.O. Box 2227, DK-1018 Copenhagen K, Denmark. --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
