Re: ByteString in Web IDL

On Wed, Jul 10, 2013 at 6:21 PM, Norbert Lindenberg
<ecmascript@lindenbergsoftware.com> wrote:
> Using ByteString effectively imposes ISO 8859-1. That seems to be required for legacy reasons in XMLHttpRequest, but it would generally be the wrong choice for any new API.

It's absolutely the right choice (though calling it iso-8859-1 is
confusing as that means windows-1252 in browsers) as that preserves
the value space. Exposing the bytes works too of course, but given
most byte sequences are "ASCII-compatible" that would be a bad API.


--
http://annevankesteren.nl/

Received on Wednesday, 10 July 2013 22:32:54 UTC