[whatwg] base64 entities

Boris Zbarsky bzbarsky at MIT.EDU
Wed Aug 25 18:37:23 PDT 2010


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.

-Boris



More information about the whatwg mailing list