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

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

From: Glenn Maynard <glenn@zewt.org>
Date: Thu, 22 Sep 2011 19:40:44 -0400
Message-ID: <CABirCh-s=jO3vqsV_9Az76Zp1k-9J3eWNVgv9cSkC4521UNakw@mail.gmail.com>
To: public-webapps@w3.org
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.

Glenn Maynard
Received on Thursday, 22 September 2011 23:41:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:24 UTC