Re: [Json] Proposal for strings/Unicode text

"Joe Hildebrand (jhildebr)" <jhildebr@cisco.com> Thu, 13 June 2013 17:46 UTC

Return-Path: <jhildebr@cisco.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8B58521F99D5 for <json@ietfa.amsl.com>; Thu, 13 Jun 2013 10:46:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2iMDZVwbXdVI for <json@ietfa.amsl.com>; Thu, 13 Jun 2013 10:46:36 -0700 (PDT)
Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) by ietfa.amsl.com (Postfix) with ESMTP id EA39321F99DA for <json@ietf.org>; Thu, 13 Jun 2013 10:46:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=485; q=dns/txt; s=iport; t=1371145596; x=1372355196; h=from:to:cc:subject:date:message-id:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=ZSiZcAxCj5un3AEAviuBSyWUtQMAicS60Jmr0assXck=; b=ITlE5QmhEjysUUH62/MQG3glr173Brn5pTQDy77vkA8z/TMOIWOWfhA9 2yyLo4IqJIRhHDTq7Z6SLwJkQXbFaJwFwO6z1AcRyzdsbempeOLQ7gPHW OOFHZEME518vYZlQf2on1XVIqSgDaIJ4+aoI8vpplLMhFei0cEsuXTdYA A=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: An0FAC0FulGtJXG//2dsb2JhbABbgwl5gi28EIECFnSCJQEEOj8SAQgiFEIlAgQBDQUIiAa7T48SMQeCf2EDqQODD4In
X-IronPort-AV: E=Sophos;i="4.87,860,1363132800"; d="scan'208";a="222288513"
Received: from rcdn-core2-4.cisco.com ([173.37.113.191]) by rcdn-iport-1.cisco.com with ESMTP; 13 Jun 2013 17:46:33 +0000
Received: from xhc-rcd-x10.cisco.com (xhc-rcd-x10.cisco.com [173.37.183.84]) by rcdn-core2-4.cisco.com (8.14.5/8.14.5) with ESMTP id r5DHkW6n025280 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 13 Jun 2013 17:46:32 GMT
Received: from xmb-rcd-x10.cisco.com ([169.254.15.56]) by xhc-rcd-x10.cisco.com ([173.37.183.84]) with mapi id 14.02.0318.004; Thu, 13 Jun 2013 12:46:32 -0500
From: "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>
To: John Cowan <cowan@mercury.ccil.org>, Bjoern Hoehrmann <derhoermi@gmx.net>
Thread-Topic: [Json] Proposal for strings/Unicode text
Thread-Index: AQHOZ51Gb76aHFDldEuIrE325m6ppJkzAdeAgAAdpYCAAKLpAIAAIdEA///3qYA=
Date: Thu, 13 Jun 2013 17:46:32 +0000
Message-ID: <A723FC6ECC552A4D8C8249D9E07425A70FC47B42@xmb-rcd-x10.cisco.com>
In-Reply-To: <20130613121620.GB11739@mercury.ccil.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.3.4.130416
x-originating-ip: [10.21.148.31]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <F49EFEFB11E1414189E0858B877DC390@emea.cisco.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Proposal for strings/Unicode text
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jun 2013 17:46:41 -0000

On 6/13/13 6:16 AM, "John Cowan" <cowan@mercury.ccil.org> wrote:

>The point is that if JSON is encoded in UTF-8, any surrogate code points
>MUST be escaped, even though the grammar does not say so.

What about changing the grammar to make that clear?

unescaped = %x20-21 / %x23-5B / %x5D-%xD7FF / %E000-%10FFFF
 ; Any unicode code point except control characters, QUOTATION MARK,
 ; REVERSE SOLIDUS, or code points reserved for UTF-16 surrogates

-- 
Joe Hildebrand