On Sun, Oct 26, 2008 at 7:19 PM, Pete Gontier <[EMAIL PROTECTED]> wrote:
> the default behavior will be to assume the encoding, UCS-2, which is > guaranteed to be free of surrogate pair subtleties. > I don't understand what this could mean in practice. If the input contains only basic plane (16 bit characters) then there is no difference between UCS-2 and UTF-16. So in this case the flag would make no difference. If the input contains characters from the 20 bit space then UCS-2 can't represent them so what will you do with them if the user specifies UCS-2 but has such characters. I think throwing them away would be worse than just leaving them in there as surrogate pairs. I suppose you could throw an exception but that seems worse too. > > > – Pete Gontier <http://pete.gontier.org/> > > > > > > > -- 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 -~----------~----~----~----~------~----~------~--~---
