On 21 Nov 2013, at 09:41, Bjoern Hoehrmann <[email protected]> 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

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to