Re: [Json] BOMs

On 21 Nov 2013, at 09:41, Bjoern Hoehrmann <derhoermi@gmx.net> wrote:

> Is there any chance, by the way, to change `JSON.stringify` so it does
> not output strings that cannot be encoded using UTF-8? Specifically,
> 
>  JSON.stringify(JSON.parse("\"\uD800\""))
> 
> would need to escape the surrogate instead of emitting it literally.

Previous discussion: http://esdiscuss.org/topic/code-points-vs-unicode-scalar-values#content-14

Received on Thursday, 21 November 2013 18:53:17 UTC