Re: [Json] Encoding Schemes

Paul Hoffman <paul.hoffman@vpnc.org> Tue, 18 June 2013 19:34 UTC

Return-Path: <paul.hoffman@vpnc.org>
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 6128721E8088 for <json@ietfa.amsl.com>; Tue, 18 Jun 2013 12:34:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level:
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 Yi4d6J0+1JjT for <json@ietfa.amsl.com>; Tue, 18 Jun 2013 12:34:13 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2605:8e00:100:41::81]) by ietfa.amsl.com (Postfix) with ESMTP id DD26221E805D for <json@ietf.org>; Tue, 18 Jun 2013 12:34:13 -0700 (PDT)
Received: from [165.227.249.247] (sn80.proper.com [75.101.18.80]) (authenticated bits=0) by hoffman.proper.com (8.14.5/8.14.5) with ESMTP id r5IJYCv7094981 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 18 Jun 2013 12:34:13 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\))
From: Paul Hoffman <paul.hoffman@vpnc.org>
In-Reply-To: <E9527431-1354-4755-8280-634B4A47BA25@tzi.org>
Date: Tue, 18 Jun 2013 12:34:12 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <4626FCFD-90CE-4CE7-A123-ED3E12E7FF0A@vpnc.org>
References: <A723FC6ECC552A4D8C8249D9E07425A70FC57CF2@xmb-rcd-x10.cisco.com> <20130618183926.GG12085@mercury.ccil.org> <E9527431-1354-4755-8280-634B4A47BA25@tzi.org>
To: Carsten Bormann <cabo@tzi.org>
X-Mailer: Apple Mail (2.1508)
Cc: json@ietf.org
Subject: Re: [Json] Encoding Schemes
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: Tue, 18 Jun 2013 19:34:14 -0000

<no hat>

On Jun 18, 2013, at 12:20 PM, Carsten Bormann <cabo@tzi.org> wrote:

> JSON the interchange format, which specifies a sequence of characters, certainly can be encoded in any character encoding scheme that is able to represent the characters that are needed in a specific case.

...as long as the receiver can determine the encoding scheme. Otherwise, there is no chance for meaningful interop.

> JSON the media type (application/json) is specifically limited to UTF-8 (and theoretically the two or possibly four other character encoding schemes listed in RFC 4627; the RFC isn't quite consistent here).

Can you point to the text in the draft that supports that statement? I see the opposite:
   Encoding considerations: 8bit if UTF-8; binary if UTF-16 or UTF-32

     JSON may be represented using UTF-8, UTF-16, or UTF-32.  When JSON
     is written in UTF-8, JSON is 8bit compatible.  When JSON is
     written in UTF-16 or UTF-32, the binary content-transfer-encoding
     must be used.

> There is no way to use another encoding in that media type as there is no charset parameter in the media type.
> (This is intentional and certainly is not a candidate for change.)

It would certainly be my preference to not add a charset parameter in the -bis document; that would seem like a major change.

--Paul Hoffman