W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2012

Re: [whatwg] "binary" encoding

From: Simon Pieters <simonp@opera.com>
Date: Tue, 12 Jun 2012 11:29:44 +0200
To: WHATWG <whatwg@whatwg.org>, "Joshua Bell" <jsbell@chromium.org>
Message-ID: <op.wfr9zuppidj3kv@simons-macbook-pro.local>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:43 UTC