[whatwg] StringEncoding: Allowed encodings for TextEncoder

Hi All,

I seem to have a recollection that we discussed only allowing encoding
to UTF8 and UTF16LE, UTF16BE. This in order to promote these formats
as well as stay in sync with other APIs like XMLHttpRequest.

However I currently can't find any restrictions on which target
encodings are supported in the current drafts.

One wrinkle in this is if we want to support arbitrary encodings when
encoding, that means that we can't use "insert a the replacement
character" as default error handling since that isn't available in a
lot of encoding formats.

/ Jonas

Received on Tuesday, 7 August 2012 04:40:48 UTC