W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

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

From: Simon Pieters <simonp@opera.com>
Date: Fri, 23 Sep 2011 10:34:51 +0200
To: public-webapps@w3.org, "Glenn Maynard" <glenn@zewt.org>
Message-ID: <op.v1854dt8idj3kv@simon-pieterss-macbook.local>
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 Friday, 23 September 2011 08:35:01 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:35 UTC