W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [FileAPI, common] UTF-16 to UTF-8 conversion

From: Arun Ranganathan <aranganathan@mozilla.com>
Date: Mon, 27 Feb 2012 15:34:57 -0800 (PST)
To: Eric U <ericu@google.com>, Simon Pieters <simonp@opera.com>
Cc: public-webapps@w3.org, Glenn Maynard <glenn@zewt.org>, Jonas Sicking <jonas@sicking.cc>
Message-ID: <1135560322.310527.1330385697560.JavaMail.root@zimbra1.shared.sjc1.mozilla.com>
Simon,

Is the relevant part of HTML sufficient to refer to?  http://dev.w3.org/html5/spec/Overview.html#utf-8



> What I can do is procrastinate until we agree that BlobBuilder is
> deprecated, and this is now the problem of the Blob constructor.
>  Over
> to you, Arun and Jonas.
> 
> On Mon, Sep 26, 2011 at 11:45 AM, Eric U <ericu@google.com> wrote:
> > Thanks Glenn and Simon--I'll see what I can do.
> >
> >
> > On Fri, Sep 23, 2011 at 1:34 AM, Simon Pieters <simonp@opera.com>
> > wrote:
> >>
> >> On Fri, 23 Sep 2011 01:40:44 +0200, Glenn Maynard <glenn@zewt.org>
> >> wrote:
> >>
> >>> BlobBuilder.append(text) says:
> >>>
> >>>> Appends the supplied text to the current contents of the
> >>>> BlobBuilder,
> >>>
> >>> writing it as UTF-8, converting newlines as specified in endings.
> >>>
> >>> It doesn't elaborate any further.  The conversion from UTF-16 to
> >>> UTF-8
> >>> needs
> >>> to be defined, in particular for the edge case of invalid UTF-16
> >>> surrogates.  If this is already defined somewhere, it isn't
> >>> referenced.
> >>>
> >>> I suppose this would belong in "Common infrastructure", next to
> >>> the
> >>> existing
> >>> section on UTF-8, not in FileAPI itself.
> >>
> >>
> >> WebSocket send() throws SYNTAX_ERR if its argument contains
> >> unpaired
> >> surrogates. It would be nice to be consistent.
> >>
> >> --
> >> Simon Pieters
> >> Opera Software
> >>
> >
> 
Received on Monday, 27 February 2012 23:35:25 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT