Re: [Json] Call for Consensus: Proposed Text for "8.1 Character Encoding"

Martin J. Dürst <duerst@it.aoyama.ac.jp> Tue, 14 March 2017 11:03 UTC

Return-Path: <duerst@it.aoyama.ac.jp>
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 D21C112953D; Tue, 14 Mar 2017 04:03:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=itaoyama.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wvXqiQdsq11G; Tue, 14 Mar 2017 04:03:33 -0700 (PDT)
Received: from JPN01-OS2-obe.outbound.protection.outlook.com (mail-os2jpn01on0093.outbound.protection.outlook.com [104.47.92.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 732AB12943B; Tue, 14 Mar 2017 04:03:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=itaoyama.onmicrosoft.com; s=selector1-it-aoyama-ac-jp; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=x+ZponzdIqM4G/CeEYQn1KuizrOY3WPSlvVJR6gAows=; b=JC/mX66L4GE1jnpW7wR40reVbORnM4WgnHcr+J99Noue+jBaf/npiNt5+x6Zagt+gSb15HfDKZ+mkew+RFwi/jHQnL7Zd0YdkSjgW5AF6DNNxIFCoTuLN6JLUD5A7e9Uk80UNnNnc1QJaYfzJAHwdZXfTopeAb+5vbNBswHNn7k=
Authentication-Results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=it.aoyama.ac.jp;
Received: from [133.2.210.64] (133.2.210.64) by OSXPR01MB0645.jpnprd01.prod.outlook.com (10.167.147.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.961.17; Tue, 14 Mar 2017 11:03:29 +0000
To: Carsten Bormann <cabo@tzi.org>, Julian Reschke <julian.reschke@gmx.de>
References: <1fb5849e-8dbf-835d-65b7-2403686248f9@outer-planes.net> <b3cb2651-2d9f-d68d-2191-814e8dd5f5e2@gmx.de> <4B0A7371-9D85-4BEF-BC3C-14175E563178@tzi.org> <98ba10a0-6e44-9ff0-5993-f7ec9c66d74b@gmx.de> <E30CE52F-CE3E-4888-99D8-58899D3652EB@tzi.org> <CAHBU6ivb1meRgGZ8QPcicQY7awq1FSVCUNB2zkXGq2WJ6bsspQ@mail.gmail.com> <9c0dee1b-341c-e783-a30b-1afeb841e693@gmx.de> <BE8E943D-85DC-414E-A44F-E154286D4169@tzi.org>
From: =?UTF-8?Q?Martin_J._D=c3=bcrst?= <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
Message-ID: <554078f2-6ed5-229a-dd34-8e4e971167ac@it.aoyama.ac.jp>
Date: Tue, 14 Mar 2017 20:03:26 +0900
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <BE8E943D-85DC-414E-A44F-E154286D4169@tzi.org>
Content-Type: text/plain; charset="utf-8"; format=flowed
Content-Transfer-Encoding: 8bit
X-Originating-IP: [133.2.210.64]
X-ClientProxiedBy: OS2PR01CA0111.jpnprd01.prod.outlook.com (10.174.152.157) To OSXPR01MB0645.jpnprd01.prod.outlook.com (10.167.147.11)
X-MS-Office365-Filtering-Correlation-Id: 21cc0805-717b-4ea7-0875-08d46ac9bf93
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:OSXPR01MB0645;
X-Microsoft-Exchange-Diagnostics: 1; OSXPR01MB0645; 3:80kYNPfHfmPo5DfHAraJ4mEPPoSDHaGLw+og3DA6qi7JrfzMSpwpDm/K1l/mFly5LThpBkPwOPwNEUT5i0pF02x3NUBMSelchj7dsJvvqpSfsjEfN/Poprd8yhMt7Ha5RLBr/6lFY29nDCkT2B8hiqG3Hm+1aFvSeyzAa0GX0dSfnmcflLQzmiNeHq9mP7GU4QuQlSsfMMxQQirJcwIsy35NH5haYh3m5HS1SGVssVYesqE33XwTcfMkdlBDfp7+0PoSManfeSm3TvasfJssCA==; 25:0BS70HQxaOcw4ImWS9njwn0DYsJLmWQXX08bk18QZrkfi+okoRtOz4QheIsqSO/B/Vq5KmQ1vRTcjZk6PEeeNBuStUOpKObfNng0yr5nq5NCZP0l5rh4IrGBIevLBjl8ZnD03408RzXnKaH9YVlNt6VX1o1BWuVjJ6WKbBz5TiPr1FpJybYuPNP3L39/8cv/itHY7Xg2tKO5w/THWbN4NVgtqVltL+bL6X23CyXFc9YEsZBxMgHl3Co8DGIrxKuiq0elRTeJAcZ5F1H+zjonykpjQxuv2eUkVma0SnbQaEo4MpvQyFTLTyNbzRu5tsRuu/sQY9U0r93oLvZx/P4XT1lvWR1+PM4sZ3drTehKri1YqDr7JLj79CyGHQNry5vhhLJw+AfscDcLlVLj56DXPSfqE7p3bFHqYghlohB3PQ5fgMDOGxALLNpUbAv6LtnhHJsxFIZX+O9nTUYMvQNx5w==
X-Microsoft-Exchange-Diagnostics: 1; OSXPR01MB0645; 31:4b+D9e31ZW3J4Qz+LdkeI5a8symXWE+ftBAcc8Xb1mgA/1dBpx287uh/3f6IdLd+owpRySIj2C9JVKbWFc6IBqiwxkFJEtDHYxLYubTYHSOYwGEQv0/Vu7PPj8j65jjRD7Yhb5dmmNLhp49sym+yIIv5JTx8WHYVOpDO2r8qskdZqeqy924TylASPfTXvJEPRBdujB5vlMHHU/IBsjjamtw+SwqGD/lDWEvNObrw3HepgnDKlczTVZcbO8F2aaBNeuV5qrcYR0PGmW65c35L1A==
X-Microsoft-Antispam-PRVS: <OSXPR01MB06450780451584224966674FCA240@OSXPR01MB0645.jpnprd01.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:(26323138287068)(100405760836317);
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123560025)(20161123555025)(20161123558025)(20161123564025)(20161123562025)(6072148); SRVR:OSXPR01MB0645; BCL:0; PCL:0; RULEID:; SRVR:OSXPR01MB0645;
X-Microsoft-Exchange-Diagnostics: 1; OSXPR01MB0645; 4:aAc8f8A/kKGYjf8hE5O7Qnp5z3vKCoP5P6G20W61XfY9lMEbTMUkXtFi2Sg+8idoVfcfUjcCgZm850x6fLp76fz/w3UQ3BXwzWa8T/jvXDOdbnkrQ+bDBpe3GeNoppU7ACome/W/hSJF5m6HQjEKfxprLNXOLPd0MldImZzl0jdPArfFsEDlLnpwL3qNWNGgKf0/2sJSfShouu8+ZZs03/b+2qeK8wE+BC61vcR/Jf1iV9XOVxRrwIArtf/G0oBQOJqw4bzJaK1wll1q17GZwbvt7aW/vnVkzucKE1cYOQNDDpbFQck2dBUJdrzB1oZfxo0IP9v4T61W3ooppCe9J2lPSJtre8ZawLAtoMqMjwMoayyASlE/Ct5hTY964XmFU5qHVKxpCnsbX0AFL5tRD0kzaHO6hc7OuCg1CekaMtF9KCJj8DrP/mwUsERV1BdSXFvGIZ+fRRVKcggQzAdMEbH0aVYftKkN4ZbNYXgOmtp4+meUxPBYBbsNcraDBxqyHy92SzUMtntRqQ5qKDTu9sr8Hv1hxQek/UPttV8jBT4aVRKkuGfaYejlXYmwOslTO6fvfpTQIVnrZQ2dGyqgDKdOMNnfJdXkHX7uq1l+IxgA9f7RpZ751v9XU9qFfrvxfaABcvCsFt005WDOtw3dY0q9y1bWYQjNNruNA7dDAqI=
X-Forefront-PRVS: 02462830BE
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6049001)(39450400003)(24454002)(42186005)(31686004)(74482002)(65956001)(6116002)(6666003)(2950100002)(90366009)(23676002)(6486002)(5660300001)(65826007)(66066001)(47776003)(229853002)(42882006)(8666007)(3846002)(33646002)(53936002)(6306002)(54906002)(93886004)(2870700001)(561944003)(305945005)(189998001)(76176999)(54356999)(4001350100001)(25786008)(50986999)(86362001)(31696002)(4326008)(53546007)(38730400002)(6246003)(8676002)(2906002)(81166006)(7736002)(3940600001); DIR:OUT; SFP:1102; SCL:1; SRVR:OSXPR01MB0645; H:[133.2.210.64]; FPR:; SPF:None; MLV:sfv; LANG:en;
X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtPU1hQUjAxTUIwNjQ1OzIzOm5CNkFWeFpPOHY2Ym5vUWV6NzlGYkhQK2Fi?= =?utf-8?B?N1Q2SEVMTVRBdnhiM3BZdFJYSnNPcDE4OEYyay96T1g1YitWMDNJZm82T3k1?= =?utf-8?B?TUZraEN4Q3pGVWdxSEMyR3FoMHpGenQ0U0JPbmlSbWxwU0ozZWh4T3A0aHRF?= =?utf-8?B?ay8yckVWOVFtY0RBTVUyTnNNUXoxL0J5bFV0dmQvZnN6eTcxcTRQTllCZy9I?= =?utf-8?B?VDNBRjM3VTBlcVNDcG5pRU1Ic1c2K0RiTnA4QTB5N3A2S0xIdy9tM3JwcS9m?= =?utf-8?B?TVZRZWRna29rZjI4THZWTXhzM2UyL1VjNytqYWoxQ09XTjBpMm84bldzRkdH?= =?utf-8?B?VjFwSFlVeHdYNURLaDhRMDU5RUFFV3U2MnpqZ0xlWUFVVHVEWkpvTzdaQTdP?= =?utf-8?B?UERkclJUUitHYzBodFdObVdzaGtSZzlIWHdNM1NkekhYS2tzN1kwZ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MB0645; 7:Nrd9UlKgKsWuoGutF/eUFGKugRpFd9vr9e7EFojh/4axkl14SHQ0QDv+/9Y193q//J2xIpqiDimix//4I5suuHDoAGoSzwTbZR2dLXEGeiiioLuoh8wZZWNnV0aSxvbY3WuztGoc38r+I3ZR5gCD5cc/Q1qCQxv8STgnO4OoyV4ZiDVftwEsuXOlNGdg/mBlqKt1CRrKviMa6VnGbtcRmia4vPqjkfbONmu1WlJgCM77dzIJNMh9QzVx16Dq+NrQc+I1pBq95CICfU+9sFQFnC6t8Z5RV9hP3KdKSKWHaztqZi1bjBN0PbjDq37ELwUljBFnqiDAWGff24enYWIMTg==
X-OriginatorOrg: it.aoyama.ac.jp
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2017 11:03:29.9731 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSXPR01MB0645
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/vXFLsyh9RD4yhMY2PHL7hT8ua-E>
Cc: Tim Bray <tbray@textuality.com>, draft-ietf-jsonbis-rfc7159bis.all@ietf.org, "Matthew A. Miller" <linuxwolf+ietf@outer-planes.net>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Call for Consensus: Proposed Text for "8.1 Character Encoding"
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.17
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: <https://mailarchive.ietf.org/arch/browse/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, 14 Mar 2017 11:03:36 -0000

On 2017/03/14 15:50, Carsten Bormann wrote:
> On 14 Mar 2017, at 07:44, Julian Reschke <julian.reschke@gmx.de> wrote:
>>
>> "Character encoding detection can be done based on the fact that the first character is always US-ASCII, so the UTF-16/32 variants can be detected by inspecting the first octets for zeros."
>
> Prefix this with “If UTF-16 and UTF-32 forms need to be supported,”, and I’m happy.

That would be fine with me, but I think it would be great if we could 
also rewrite the "JSON text SHALL be encoded in UTF-8, UTF-16, or 
UTF-32" phrase in the current draft as per my separate proposal (as 
modified by Peter Cordell at 
https://mailarchive.ietf.org/arch/msg/json/MR93bNIj1sDEutFIPupHTRYrJPI). 
Starting with UTF-8 only rather than starting with UTF-8, UTF-16, and 
UTF-32 together makes it clearer where interoperability is even if for 
somebody who reads the text in detail, there's not much that changes.

Regards,   Martin.