Re: [Json] Encoding detection (Was: Re: JSON: remove gap between Ecma-404 and IETF draft)

Bjoern Hoehrmann <derhoermi@gmx.net> Fri, 22 November 2013 18:52 UTC

Return-Path: <derhoermi@gmx.net>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8D4841AE358 for <json@ietfa.amsl.com>; Fri, 22 Nov 2013 10:52:34 -0800 (PST)
X-Quarantine-ID: <f2KdZCyuNd4Z>
X-Virus-Scanned: amavisd-new at amsl.com
X-Amavis-Alert: BANNED, message contains text/plain,.exe
X-Spam-Flag: NO
X-Spam-Score: -2.424
X-Spam-Level:
X-Spam-Status: No, score=-2.424 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.525, SPF_PASS=-0.001, WEIRD_QUOTING=0.001] autolearn=ham
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 f2KdZCyuNd4Z for <json@ietfa.amsl.com>; Fri, 22 Nov 2013 10:52:33 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by ietfa.amsl.com (Postfix) with ESMTP id D3A2F1AE25B for <json@ietf.org>; Fri, 22 Nov 2013 10:52:32 -0800 (PST)
Received: from netb.Speedport_W_700V ([91.35.1.197]) by mail.gmx.com (mrgmx103) with ESMTPA (Nemesis) id 0MDR21-1VtXgD09wD-00GuTz for <json@ietf.org>; Fri, 22 Nov 2013 19:52:24 +0100
From: Bjoern Hoehrmann <derhoermi@gmx.net>
To: "Matt Miller (mamille2)" <mamille2@cisco.com>
Date: Fri, 22 Nov 2013 19:52:26 +0100
Message-ID: <ge9v89hbda8440gdtt06cd7k8ehtpfkd2d@hive.bjoern.hoehrmann.de>
References: <20131120223305.GB5476@mercury.ccil.org> <CANXqsRJmNmSRXssBnw3tGUt0veViENLoS=dp+gEr2RqvNAf4JQ@mail.gmail.com> <20131121165615.GA12138@mercury.ccil.org> <CANXqsRKrcR54TzSFng0ysyTV60-uZZ7QQ-G4xJOB0gO29C7-Ag@mail.gmail.com> <54E53D571E5E4589B2E9FA17DC816002@codalogic> <CAHBU6itwNwAy__Yy3n2bGMjuZnXAhK+qNbLq36piFy666m-Cng@mail.gmail.com> <EF7034DE-EA4D-43E4-9A5A-159E4A9DAB02@wirfs-brock.com> <BAC0485B-3C8F-43D5-9F14-52615AB00D4B@cisco.com>
In-Reply-To: <BAC0485B-3C8F-43D5-9F14-52615AB00D4B@cisco.com>
X-Mailer: Forte Agent 3.3/32.846
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:UCHivFTyW9MG9lUvWvbuGKfBS8cvrY1d2k3v3idXdrbqn2nebqC 7stb4sXuBQ5m6XVHnAeTey6w2X+78uME19v2ZEGTKniy2Y9fumsZ4h8UTmg2VhgBzMguwOm KHL2MyNqrx4Q28rFg8wI+rusyc+pNl4aJ+XlILrd2AzyFNOmp50Rm7I/w3A+cf9woCVwB1c lfxP+1aTCsn/2ZB21GUyw==
Cc: es-discuss <es-discuss@mozilla.org>, "www-tag@w3.org" <www-tag@w3.org>, JSON WG <json@ietf.org>
Subject: Re: [Json] Encoding detection (Was: Re: JSON: remove gap between Ecma-404 and IETF draft)
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
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: Fri, 22 Nov 2013 18:52:34 -0000

* Matt Miller (mamille2) wrote:
>There does seem to be rough consensus that using an encoding other than 
>UTF-8 can have interoperability issues.  The also seems to be rough 
>consensus that the current text and table in section 8.1 for detecting 
>the encoding will be inaccurate (and potentially harmful).
>
>That appears to mean the approach with the most consensus is to remove
>the encoding detection entirely, leaving only:
>
>""""
>   JSON text SHALL be encoded in Unicode.  The default encoding is
>   UTF-8.
>""""

Neither of the quoted statements mean anything as far as I can tell.
The encoding detection rules are a vital part of the specification and
cannot be removed without replacement. I am not aware of any argument
that the text "will be" inaccurate or harmful.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/