[whatwg] "binary" encoding

Simon Pieters simonp at opera.com
Tue Jun 12 02:29:44 PDT 2012


On Mon, 11 Jun 2012 18:20:55 +0200, Joshua Bell <jsbell at 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


More information about the whatwg mailing list