Re: [Json] A possible summary of the discussion so far on code points and characters

R S <sayrer@gmail.com> Sun, 09 June 2013 01:24 UTC

Return-Path: <sayrer@gmail.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 0227621F96D9 for <json@ietfa.amsl.com>; Sat, 8 Jun 2013 18:24:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.915
X-Spam-Level:
X-Spam-Status: No, score=-0.915 tagged_above=-999 required=5 tests=[AWL=-1.609, BAYES_00=-2.599, FB_WORD2_END_DOLLAR=3.294, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
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 Ffv0CxV5nnNQ for <json@ietfa.amsl.com>; Sat, 8 Jun 2013 18:24:53 -0700 (PDT)
Received: from mail-wg0-x22c.google.com (mail-wg0-x22c.google.com [IPv6:2a00:1450:400c:c00::22c]) by ietfa.amsl.com (Postfix) with ESMTP id 40ACA21F8D10 for <json@ietf.org>; Sat, 8 Jun 2013 18:24:53 -0700 (PDT)
Received: by mail-wg0-f44.google.com with SMTP id m15so2986507wgh.35 for <json@ietf.org>; Sat, 08 Jun 2013 18:24:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fNRG09DdC9ESr6Wc/UJ7vmbFdQ3lWyCzJRKt91cwB78=; b=jFb7Io9iKJpWcA/vQjUtD+gZLoRHfmc8MQ2gzOe2Glcf3AoVlcL2kTN9FQ9KlkrN1x S8xrQnLCDXbPqww8E7xtY0/0dt33mlh6VvKXCQLdYPxnR1lHdrqrfq1D2IiErWG3f0v0 RdUAOnamDVhZKk8XuRSmu52hpp/jHAzanKBG827E4dgSMK7elwDi/6bx9u+XgWrJLkTy tnj/u8HTqM1EiOE0u2AekZ5H7Pjjv6zG8Een728u2wXCszMwu31Uq0l/dGZdjAv7xMFG vOB0bNB/lJZOeM9Hdp/4Fj4X7H3K4TwKgLzazBG/cgD+h3PHGDzpOOupshX4Vc7Kn8Hr oOkA==
MIME-Version: 1.0
X-Received: by 10.180.185.4 with SMTP id ey4mr1815006wic.49.1370741092282; Sat, 08 Jun 2013 18:24:52 -0700 (PDT)
Received: by 10.194.83.35 with HTTP; Sat, 8 Jun 2013 18:24:52 -0700 (PDT)
In-Reply-To: <EF244D9B-29E2-40E4-99FF-810A28091106@tzi.org>
References: <AF793CAF-B30B-44A7-B864-82CEF79EA34D@vpnc.org> <CAChr6SwLDCUk0DC9pGTKqUu_V5vJHvs7Sgv4EneTJMryn1iKSA@mail.gmail.com> <D27EA9DC-9EFE-419B-BC34-3BF3FC8F5260@vpnc.org> <EF244D9B-29E2-40E4-99FF-810A28091106@tzi.org>
Date: Sat, 8 Jun 2013 18:24:52 -0700
Message-ID: <CAChr6Sxwhdn8CshU92y6fcoovzzhcayg3MECP7Hg=UXX390z=w@mail.gmail.com>
From: R S <sayrer@gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Content-Type: multipart/alternative; boundary=001a11c35022e277a504deae87b3
Cc: Paul Hoffman <paul.hoffman@vpnc.org>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] A possible summary of the discussion so far on code points and characters
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: Sun, 09 Jun 2013 01:24:54 -0000

On Sat, Jun 8, 2013 at 5:39 PM, Carsten Bormann <cabo@tzi.org> wrote:

>
> This view is most natural to those who think JSON should be useful as an
> interchange format for the "use a JavaScript string as a vector of
> unconstrained 16-bit values" hack.
>

We should document what currently works. It's not about expressing a
preference.

> (It is not aligned with JSON's main purpose.)

I am not sure what the rationale for that statement is.

The RFC says:

"An implementation may set limits on the length and character contents of
strings."

So maybe there's once again nothing to do here.

- Rob


sayrer$ python
Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import json
>>> json.loads('{"End of data marker": "\uFFFF" }')
{u'End of data marker': u'\uffff'}
>>> quit()

sayrer$ node
>
(^C again to quit)
>

sayrer$ node --version
v0.8.14

sayrer$ node
> JSON.parse('{"End of data marker": "\uFFFF" }')
{ 'End of data marker': '￿' }
> process.exit()