From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 27 Aug 2009 09:05:18 -1000 From: Tim Newsham To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-Reply-To: <3e1162e60908270952ma0c9869w110a19eebb09a246@mail.gmail.com> Message-ID: References: <3e1162e60908270735j65d9e3f8k10fcb2ec4dc21111@mail.gmail.com> <9bd6742967a2aea2c3b7978796e54c58@vitanuova.com> <3e1162e60908270952ma0c9869w110a19eebb09a246@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [9fans] 9P on android Topicbox-Message-UUID: 5797ab8c-ead5-11e9-9d60-3106f5b1d025 > On Thu, Aug 27, 2009 at 8:59 AM, C H Forsyth wrote: >> has javascript finally got support for binary data? > > I haven't been following. I find a lot of "web stuff" to be off-putting, so > I've not been keeping up. base64 encoding stuff is crap but could suffice > in a pinch. Did Javascript not support binary data in the past? It seems to support it fine in my browser at least. Here's a transcript from a javascript shell session in my browser (note, top line is most recent, bottom line is oldest): http://www.thenewsh.com/shell.html Eval: for(var i = 0; i < x.length; i++) _print(x.charCodeAt(i) + "\n"); Return: undefined 255 254 3 2 1 0 Eval: x = "\x00\x01\x02\x03\xfe\xff" Return: > Dave Tim Newsham http://www.thenewsh.com/~newsham/