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

On Tue, 28 Feb 2012 00:34:57 +0100, Arun Ranganathan  
<> wrote:
> Is the relevant part of HTML sufficient to refer to?   

That is UTF-8 octets -> Unicode code points. UTF-16 -> UTF-8 is different.  
You want the algorithm in Web IDL that takes a DOMString and gives you  
Unicode. And then from Unicode you go to UTF-8. If you want it to never  
fail that is and not generate "broken" UTF-8.

Anne van Kesteren

Received on Tuesday, 28 February 2012 00:12:43 UTC