W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] base64 entities

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 25 Aug 2010 21:37:23 -0400
Message-ID: <4C75C553.6020100@mit.edu>
On 8/25/10 7:41 PM, Adam Barth wrote:
> 2) Decoding base64 results in binary data.  We'll need to convert that
> data to characters in order to deal with it in the DOM.  We use always
> use UTF8 for that transformation, regardless of the document's
> encoding.

Note that this issue means that using atob or btoa for dealing with this 
is a huge pain if non-ASCII chars are involved, since those take and 
return byte arrays masquerading as JS strings, not actual Unicode strings.

Received on Wednesday, 25 August 2010 18:37:23 UTC

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