Re: [Json] es-discuss Digest, Vol 81, Issue 82

Bjoern Hoehrmann <derhoermi@gmx.net> Mon, 18 November 2013 17:55 UTC

Return-Path: <derhoermi@gmx.net>
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 4B71411E8219 for <json@ietfa.amsl.com>; Mon, 18 Nov 2013 09:55:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.509
X-Spam-Level:
X-Spam-Status: No, score=-4.509 tagged_above=-999 required=5 tests=[AWL=-1.910, BAYES_00=-2.599]
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 4Rwqbi9lVpk8 for <json@ietfa.amsl.com>; Mon, 18 Nov 2013 09:55:16 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by ietfa.amsl.com (Postfix) with ESMTP id 1311311E81B5 for <json@ietf.org>; Mon, 18 Nov 2013 09:50:22 -0800 (PST)
Received: from netb.Speedport_W_700V ([91.35.16.135]) by mail.gmx.com (mrgmx101) with ESMTPA (Nemesis) id 0MYKGj-1WDUDK4BtJ-00V6ZE for <json@ietf.org>; Mon, 18 Nov 2013 18:50:21 +0100
From: Bjoern Hoehrmann <derhoermi@gmx.net>
To: mnita@google.com
Date: Mon, 18 Nov 2013 18:50:18 +0100
Message-ID: <omkk89trqkuudtgae7pts32du4roddpv5u@hive.bjoern.hoehrmann.de>
References: <mailman.26161.1384783360.24864.es-discuss@mozilla.org> <CAKj9SuMeMorkQn88QwqvcE9D8b8ss4xxkd4dLqAOLWjydRTPRw@mail.gmail.com>
In-Reply-To: <CAKj9SuMeMorkQn88QwqvcE9D8b8ss4xxkd4dLqAOLWjydRTPRw@mail.gmail.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:TnHF/dlHDEki9RPIFthGaWWlfsKyHwEYUtpRseWiLqwUEV2ZzCH qLj2+qIRkLn0IzI4rljCGkxVtW7yuIDqL+syArDIVJHpznRrLM3GeTB7YECOqqUy3PaM5vy F1HYGbV+DqvDXusouhqy5QEhfUbgkw0mAkL31TnjKAh2PcfNRplXHn56KclNw08oM/Cd+WR BNPuyrC+R2mYDsOx7Teng==
Cc: es-discuss <es-discuss@mozilla.org>, IETF Discussion <ietf@ietf.org>, www-tag@w3.org, JSON WG <json@ietf.org>
Subject: Re: [Json] es-discuss Digest, Vol 81, Issue 82
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: Mon, 18 Nov 2013 17:55:21 -0000

* mnita@google.com wrote:
>The first four bytes are:
>
>           00 00 00 22  UTF-32BE
>           00 22 E5 65  UTF-16BE
>           22 00 00 00  UTF-32LE
>           22 00 65 E5  UTF-16LE
>           22 E6 97 A5  UTF-8
>
>The UTF-16 bytes don't match the patterns in RFC, so UTF-16 streams would
>(wrongly) be detected as UTF-8, if one strictly follows the RFC.

RFC 4627 does not allow string literals at the top level.
-- 
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/