Need a champion? StringView strawman

Dwayne rodneyd.teal at
Fri Jan 10 13:29:25 PST 2014

On Fri, Jan 10, 2014 at 3:14 PM, Boris Zbarsky <bzbarsky at> wrote:

> I'm curious.  What would you expect such an option to do?  Byte-inflate
> like ISO-8859-1?  Byte-inflate but throw on bytes with values > 127? Act as
> a synonym for ISO-8859-9? Something else?

Exactly how StringView handles the option now. If I generate a random
string using byte values then each char in that string should correspond to
a single byte when specifying the ISO-8859-1. It doesn't really make since
to use UTF-8 for bytes when that data should be manipulated as bytes in the
first place. In the case of data being represented as a string but need to
be handled as bytes.

UTF-8 being the default is not the problem of course. Throwing an exception
for ASCII is.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list