W3C home > Mailing lists > Public > www-tag@w3.org > November 2013

Re: [Json] BOMs

From: Mathias Bynens <mathias@qiwi.be>
Date: Thu, 21 Nov 2013 10:52:47 -0800
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>
Message-Id: <1963DFEA-F4ED-42A8-98D4-4F5A99076136@qiwi.be>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:57:00 UTC