W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2013

[whatwg] Adding a btoa overload that takes Uint8Array

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 04 Mar 2013 12:09:50 -0500
Message-ID: <5134D55E.8010503@mit.edu>
To: whatwg <whatwg@whatwg.org>
The problem I'm trying to solve is sending Unicode text to consumers who 
need base64-encoded input.  Right now the only "sane" way to do it (and 
I quote "sane" for obvious reasons) is something like the example at 

It seems like it would be better if the output of a TextEncoder could be 
passed directly to btoa.  But for that we need an overload of btoa that 
takes a Uint8Array.


Received on Monday, 4 March 2013 17:10:24 UTC

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