Re: [whatwg] "binary" encoding

On Mon, 11 Jun 2012 18:20:55 +0200, Joshua Bell <jsbell@chromium.org>  
wrote:

>> http://wiki.whatwg.org/wiki/StringEncoding

>> defines a binary encoding
>> (basically the official iso-8859-1 where it is not mapped to
>> windows-1252).
>
>
> .... which is residue from earlier iterations. Intended use case was
> interop with legacy JS that used the lower 8 bits of strings to hold  
> binary
> data, e.g. with APIs like atob()/btoa().

I think we should drop this and extend atob() and btoa() to be able to  
convert base64 strings to ArrayBuffer[View?] and back directly.

-- 
Simon Pieters
Opera Software

Received on Tuesday, 12 June 2012 09:34:37 UTC