- From: Mathias Bynens <mathias@qiwi.be>
- Date: Thu, 21 Nov 2013 10:52:47 -0800
- To: Bjoern Hoehrmann <derhoermi@gmx.net>
- Cc: Allen Wirfs-Brock <allen@wirfs-brock.com>, Henri Sivonen <hsivonen@hsivonen.fi>, es-discuss <es-discuss@mozilla.org>, IETF Discussion <ietf@ietf.org>, www-tag <www-tag@w3.org>, JSON WG <json@ietf.org>
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