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

Anne van Kesteren <annevk@annevk.nl> Thu, 21 November 2013 13:39 UTC

Return-Path: <annevankesteren@gmail.com>
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 272121ADEBA for <json@ietfa.amsl.com>; Thu, 21 Nov 2013 05:39:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.278
X-Spam-Level:
X-Spam-Status: No, score=-1.278 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=no
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 egrfXyrl9mgZ for <json@ietfa.amsl.com>; Thu, 21 Nov 2013 05:39:17 -0800 (PST)
Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) by ietfa.amsl.com (Postfix) with ESMTP id D9CCD1ADEA6 for <json@ietf.org>; Thu, 21 Nov 2013 05:39:16 -0800 (PST)
Received: by mail-wi0-f173.google.com with SMTP id hm4so3084215wib.0 for <json@ietf.org>; Thu, 21 Nov 2013 05:39:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=jkKKqoGF/gVr0EWBirzRBtKNiJa9iZHsglWRl8LleHg=; b=MCxvAbtyzJWK0JT6Dyoqv5ihI1hU3pKqKw7o/tvk3l/bofePDpVOvPYKiN27JLCsFF vg+q7m9UKYO9shcr7fJAycX+TlEVR7U1jA6pOT0RYAvotbc3dqiKCmzfDFA6uhAPgpaJ PtcmDSRtBFjZ4p32GH940Or4Td2QB4SVaHP0ELPVPm+vA0Eb3w6cWGPEMeWq392eX5UM t2ZZu6zJKXnCWaLlm3Nsyf9xbq1KPO7UtkaYcE2ILAxrhL3CUfhUNIrKN/8a662Ur1Od WvGidqctczqC8dtmRQ1oEvJc/J0tCppcPtr0j2nqt2kldeNALCsNL5pMCT2WQPUW2k+s K+LQ==
MIME-Version: 1.0
X-Received: by 10.180.37.11 with SMTP id u11mr5018779wij.27.1385041149718; Thu, 21 Nov 2013 05:39:09 -0800 (PST)
Sender: annevankesteren@gmail.com
Received: by 10.227.19.193 with HTTP; Thu, 21 Nov 2013 05:39:09 -0800 (PST)
In-Reply-To: <CANXqsRJmNmSRXssBnw3tGUt0veViENLoS=dp+gEr2RqvNAf4JQ@mail.gmail.com>
References: <8413609C8A86497F856897AF2AA24960@codalogic> <CEAA3067.2D132%jhildebr@cisco.com> <CANXqsRJEtBoprQFrftz80ZigmBR_NHoEXK1sR4GyBtz5B2KC8Q@mail.gmail.com> <20131120223305.GB5476@mercury.ccil.org> <CANXqsRJmNmSRXssBnw3tGUt0veViENLoS=dp+gEr2RqvNAf4JQ@mail.gmail.com>
Date: Thu, 21 Nov 2013 13:39:09 +0000
X-Google-Sender-Auth: 457enT4Ntk3Pbe2VRnQaFMyjSLs
Message-ID: <CADnb78iJUNjdGFPt-D6kXHz-SF1OvotaYPRdPMLZrqHTJNbpfg@mail.gmail.com>
From: Anne van Kesteren <annevk@annevk.nl>
To: Henri Sivonen <hsivonen@hsivonen.fi>
Content-Type: text/plain; charset="UTF-8"
Cc: John Cowan <cowan@mercury.ccil.org>, Pete Cordell <petejson@codalogic.com>, Paul Hoffman <paul.hoffman@vpnc.org>, JSON WG <json@ietf.org>, "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>, "www-tag@w3.org" <www-tag@w3.org>, es-discuss <es-discuss@mozilla.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: Thu, 21 Nov 2013 13:39:18 -0000

On Thu, Nov 21, 2013 at 1:35 PM, Henri Sivonen <hsivonen@hsivonen.fi> wrote:
> UTF-32 harms JSON interchange, because Gecko removed all UTF-32
> support throughout the engine (other engines probably did, too, but
> I'm too busy to check) and, therefore, XHR responseType = "json"
> doesn't support UTF-32.

XHR's responseType = "json" only supports UTF-8 (optionally with a
leading BOM), across the board.


-- 
http://annevankesteren.nl/