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

Martin J. Dürst <duerst@it.aoyama.ac.jp> Tue, 28 March 2017 04:16 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 2246A1297E6 for <json@ietfa.amsl.com>; Mon, 27 Mar 2017 21:16:47 -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 WjXh7dHG8ahC for <json@ietfa.amsl.com>; Mon, 27 Mar 2017 21:16:44 -0700 (PDT)
Received: from JPN01-TY1-obe.outbound.protection.outlook.com (mail-ty1jpn01on0134.outbound.protection.outlook.com [104.47.93.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0FD61126DED for <json@ietf.org>; Mon, 27 Mar 2017 21:16:43 -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=g2xUZy5oPDqrWlN/7qggVWP5zygzYqlIRn++24Zr/Pg=; b=d77WbVLqNRRWbZl7R9J+m7ow9h5Kdh+PDDnFl40oCtkkzkahedyif97he64rrmVloKM4cNunrnAYaaOiDgoYTz27DyV+Yngy1Ws4W8CIfsKdPGGX3SQNY1WeNlETeU9xS4R5a4fxPTrqzZ/HMxkSPvOKCn2/A8Mb/AOvyKkb6A4=
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 TYXPR01MB0653.jpnprd01.prod.outlook.com (10.168.43.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Tue, 28 Mar 2017 04:16:41 +0000
To: "Matthew A. Miller" <linuxwolf+ietf@outer-planes.net>, "json@ietf.org" <json@ietf.org>
References: <1fb5849e-8dbf-835d-65b7-2403686248f9@outer-planes.net> <0E32A94D-CE12-4F52-9ED6-8743C49751B4@vpnc.org> <4d2f0fb3-a729-0c17-2394-bc1e005dd612@gmx.de> <d09f9a59-2411-45a0-470c-ea95072fe4fd@outer-planes.net> <dad91b19-e774-e239-36d2-9d086cca8e0d@gmx.de> <ac432615-ee84-3cdf-6b37-480626bd18c1@gmx.de> <804f9930-26a5-a565-0607-452b386cfeb5@outer-planes.net> <D89BCFAA-B81F-4EEB-8B3A-180BAAB9D16C@att.com> <e69d7c21-85cb-45f4-c0c2-34c624e63049@outer-planes.net> <14252631-AD76-4537-89BF-6368F4A8CDF4@att.com> <7e6af21f-16ea-a3bc-9c01-595ae8acebba@gmx.de> <05100401-88D4-4158-A3FF-3EF144D85449@att.com> <CAD2gp_T0bfpnsCA_t4BAMtEhr7p8JkZggjnY4F+m9-M2hWLfmw@mail.gmail.com> <1e94516c-9c82-8b0e-0d2d-7dbaa83b21bd@outer-planes.net> <40e3207f-e047-c898-1f0c-4422de1d597a@it.aoyama.ac.jp> <1b3ec14a-927a-8d46-e3d3-9807a9588437@outer-planes.net>
From: =?UTF-8?Q?Martin_J._D=c3=bcrst?= <duerst@it.aoyama.ac.jp>
Organization: Aoyama Gakuin University
Message-ID: <69cda124-b72d-52aa-78ae-032ac3889cf3@it.aoyama.ac.jp>
Date: Tue, 28 Mar 2017 13:16:38 +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: <1b3ec14a-927a-8d46-e3d3-9807a9588437@outer-planes.net>
Content-Type: text/plain; charset="utf-8"; format=flowed
Content-Transfer-Encoding: 8bit
X-Originating-IP: [133.2.210.64]
X-ClientProxiedBy: TY1PR01CA0033.jpnprd01.prod.outlook.com (10.164.162.143) To TYXPR01MB0653.jpnprd01.prod.outlook.com (10.168.43.140)
X-MS-Office365-Filtering-Correlation-Id: 64af990d-a14f-4e77-1688-08d475913cbe
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423055)(201703031133061); SRVR:TYXPR01MB0653;
X-Microsoft-Exchange-Diagnostics: 1; TYXPR01MB0653; 3:7WhAKt/tuyXzfqzfCNNT1f1H35+g/+fqchcY5ctMNSJ4isdxsqabtujFU//kw5+hj848DCbEY590QQTF5DVLjMkwq2qjw/UiIUzM2VB7az51LY3nYGq8OmjNq+J0Y3ph9DgT4CfjK6me2k2BYV6EoyIATJvHWhCBPKhkIU+TEWSV9afy0YmrUkodO0MtAH9VbpwqNWCeACqJFKrRGHCJMpkAdE1WdShVUy4f+gsn8llMmLw80YqyjgUKe/VNuCHb+LgVTay6SBmV03shA3qtMXahLMVWCoQnJdHlAtTJHT6QTLHu7/VRb/oalzls3qU4OvgHynnUxPOSwb1IAB6dZw==; 25:ipT4ZLshCUOS+ISGPsjTlmiEN5MtqE24gAlHdOHO4FZhy5W4ZvAn9OD+7xvNjHNsb55VD3yUjapK7hZ0C92y7vOyi6YNBLSmVui+w4xetXojo4tl67pSYDYlWnBFz5n7yLHN9GqYTiKgVzK8Li0N1aAqgjTd4vjJ5o11nUCRabrlr037OsqXJcenq1kMZ5OKP5uCOyY86RiSf9PrRnqzfm/MC4TivRe6txrhL8fWTrGShSeh0JjXh4ox8DXbvEtZlwkBNW/XHedLmUVQPuPZGqcMCyN2z7ORCKeY1RCJBxs0LPJddnXjgmg2S6Sse6bRqDZ9A58zwMmdtWuCv9aNLWUSbqiwWIt5D/e60aY+D4OLt+83I5KsWJbJoRyrTyfb3TRgje5OFHZSrfNlRSTLUycQM3N7kJZe5ZmY7BNCDJmz3wtJ+gLfPlXSK2wlV1aLHe9X8PIDxS1JKgfR6u2mDg==
X-Microsoft-Exchange-Diagnostics: 1; TYXPR01MB0653; 31:Vq7zlSkJYG+wApm1CnOWkiCE7tioQtjTk+4OE8ul69/r6ELybNJqBtYsd8QtAJCB+ssBvibhVl8VL5xqnO869n2EY1nJBF8Dymz6tHoib7iyWe9Jj9Qz0Biii+VuoO8t9l4R308ug2cBYJ+k9GAyau+5IMzPREkzAA+8T46G8eLiQRmrrFkpj+G0ngLkF5Jehc517hggbSsvkB4EbiUGsETWe6UJSqzUcMcOvw0ouKOIZa2Ptk5/cX83EYmDyLT77Ru5hgnb2nAs4kb3hAt7lQ==
X-Microsoft-Antispam-PRVS: <TYXPR01MB06532E8B4E0CA81C1A3AAB59CA320@TYXPR01MB0653.jpnprd01.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:(100405760836317);
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040429)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123562025)(20161123564025)(20161123558025)(20161123555025)(20161123560025)(201703131423054)(201702281529054)(201702281528054)(201703061421054)(201703061406054)(6072148); SRVR:TYXPR01MB0653; BCL:0; PCL:0; RULEID:; SRVR:TYXPR01MB0653;
X-Microsoft-Exchange-Diagnostics: 1; TYXPR01MB0653; 4:2OFdNK6Lu9mw0Bt9vuYX5qXEJrlmaPN0c6F1NgC7XDd3CANh5zrjx49uz17jEYbjYSqbrWpPXC3uvA3uOBQAGjFQ5COyOvPBRHL2RGmN2/hwCEqqyw1G4GLmDwR01b1l/qF2lr7hxvI55szaHuD1b32eqbGXpvTV4ekRIyjvNnXNlijmwZmC6KCUwwRYlovEJaILlP2FaQI6JO9IcXg9joNAdp1QxVeiHd/zXhwTNQZecWQ8tvzJfV/KkvTnmhtEHfTu8z90uqN5N2GEmzytNronsJqigUESvjTbmu35KebB/18/Iwd8KlE9+WX2gvJ/svzmZMMhVbTArpiFdvEg+rX2aEbL3g4dnmK7/SPIW+5/8My7RAEYLG3ZQWEoXuvnyCyKJ5sBsc1gEzwSZuOo6Is0Mr+DEUZ2H8lyiuF8vwF0GfRliFLI3kEo4/5a19kfqXy8Gx7ZFDN6jyHbb6N1Oe2mZWqyF1ehfMi/Z1HbFdt9DIcGsoPIBroa6MMSzpmfU++WZ75YBV/4L3zxD1CA31bG739LhTbfjso+oTgyCSpJJs8ejEN7KU8Z8K0y5mgvYqVPRlXOo7PP0Hjv07cwq1CXcNJlsy7Lsu698HP9nNAH8clxReUlku058qePrKGIidjc+QELcVDf0yAVtTGnrQfPDGhn4vDDVUQYM++/3kwyahr68Qzyt2yiOMI4UM5OnrNxIIJq9zY/fWbyudMITEQQMvS2CHqDrt1QBkAqOa36JahFUHBIw8Dm1ZaQEW6/bstBAyK0EuDMxKmsWf6Lfd0DTx4P0RySL+Wt+LhE9amcFj7icB6cVr2Yv8lpe2pW
X-Forefront-PRVS: 0260457E99
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6049001)(6009001)(39400400002)(39410400002)(39830400002)(39450400003)(377424004)(24454002)(6116002)(3846002)(6306002)(50466002)(53936002)(6486002)(561944003)(90366009)(23676002)(93886004)(6246003)(2870700001)(54356999)(31686004)(42186005)(81166006)(2906002)(50986999)(2501003)(76176999)(8676002)(38730400002)(7736002)(47776003)(305945005)(4001350100001)(189998001)(65826007)(5660300001)(229853002)(66066001)(33646002)(65806001)(65956001)(86362001)(74482002)(25786009)(31696002)(53546009)(6666003)(2950100002)(83506001)(42882006)(3940600001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HXSmCJCn4QWK/tPs74oEqqJjhWos8Qzm49FcvGhEDBdn2DySuSX2AFnTBSh4jQyFUOzByFNZ5fkWgLQreqdt8DHT8XA+DpQiP9ZFhtT0ppor1nZmXNhsdXgZivpaIz4fALrdea/W6y2UEaoNcqsh0eXdIlNj/pbbZYl1iaEjjn8GZTOZJY2wTwEopiyg==
X-OriginatorOrg: it.aoyama.ac.jp
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2017 04:16:41.5340 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYXPR01MB0653
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/WQpA1wEQrsqslNuS5JdU2A942iw>
Subject: Re: [Json] Call for Consensus: Proposed Text for "8.1 Character Encoding"
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.22
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, 28 Mar 2017 04:16:47 -0000

Looks good. Ship it!    Regards,   Martin.

On 2017/03/28 05:04, Matthew A. Miller wrote:
> Hello JSONBis,
>
> I believe I see consensus for:
>
> * MUST encode as UTF-8 where the media type is 'application/json'
> * SHOULD encode as UTF-8 for all (other) usages.
>
> In an attempt to expedite things, here is a proposal for text that I
> think matches the consensus:
>
> """
> JSON text SHOULD be encoded in UTF-8 (Section 3 of [UNICODE]); JSON
> text MAY be encoded in UTF-16 or UTF-32 if the generator is certain
> the intended recipients can process it. JSON text MUST NOT be encoded
> in any encoding other than UTF-8, UTF-16, or UTF-32. When used with
> media type "application/json" the JSON text MUST be encoded as UTF-8.
>
> Implementations MUST NOT add a byte order mark (U+FEFF) to the
> beginning of a JSON text.  In the interests of interoperability,
> implementations that parse JSON texts MAY ignore the presence of a
> byte order mark rather than treating it as an error.
>
> Recipients that wish to support Unicode encodings other than UTF-8
> can do this using a detection mechanism that is based on the fact
> that the first character will always have a Unicode code point
> greater than 0 and less than 128, thus the UTF-16/32 variants can
> be detected by inspecting the first octets for nulls.
> """
>
>
> - m&m
>
> Matthew A. Miller
> JSONBis Chair
>
>
>
> _______________________________________________
> json mailing list
> json@ietf.org
> https://www.ietf.org/mailman/listinfo/json
>

-- 
Prof. Dr.sc. Martin J. Dürst
Department of Intelligent Information Technology
College of Science and Engineering
Aoyama Gakuin University
Fuchinobe 5-1-10, Chuo-ku, Sagamihara
252-5258 Japan