Re: [rtcweb] PPID, UTF-16 and DOMString (Re: RTCWEB Data Channel: Usage of PPID for protocol multiplexing)

Michael Tuexen <Michael.Tuexen@lurchi.franken.de> Sat, 08 February 2014 20:35 UTC

Return-Path: <Michael.Tuexen@lurchi.franken.de>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4596C1A048E for <rtcweb@ietfa.amsl.com>; Sat, 8 Feb 2014 12:35:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.499
X-Spam-Level:
X-Spam-Status: No, score=-1.499 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, J_CHICKENPOX_47=0.6, RP_MATCHES_RCVD=-0.548, SPF_HELO_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 xBJqMgXY9OBu for <rtcweb@ietfa.amsl.com>; Sat, 8 Feb 2014 12:35:36 -0800 (PST)
Received: from mail-n.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) by ietfa.amsl.com (Postfix) with ESMTP id DCA0E1A0447 for <rtcweb@ietf.org>; Sat, 8 Feb 2014 12:35:35 -0800 (PST)
Received: from [192.168.1.200] (p5481B04C.dip0.t-ipconnect.de [84.129.176.76]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTP id D8EBC1C0B303E; Sat, 8 Feb 2014 21:35:34 +0100 (CET)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
In-Reply-To: <52F69278.4000401@jesup.org>
Date: Sat, 08 Feb 2014 21:35:33 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <B4CD0781-BE26-4252-990B-74CD3FB8BAFC@lurchi.franken.de>
References: <7594FB04B1934943A5C02806D1A2204B1D15E955@ESESSMB209.ericsson.se> <74072016-DA11-41E8-9944-779428163EE4@lurchi.franken.de> <7594FB04B1934943A5C02806D1A2204B1D15ED94@ESESSMB209.ericsson.se> <E1FE4C082A89A246A11D7F32A95A17826DFCF6C8@US70UWXCHMBA02.zam.alcatel-lucent.com> <B304F67A-9EA2-44A0-86DD-9DD0E21CB86F@lurchi.franken.de> <52F4182F.60404@alvestrand.no> <E1FE4C082A89A246A11D7F32A95A17826DFD40C3@US70UWXCHMBA02.zam.alcatel-lucent.com> <CABkgnnXMYt7teSpxm7chTvQPR8ThKzKQ_bq3Po_FNFv2tdBFGQ@mail.gmail.com> <52F69278.4000401@jesup.org>
To: Randell Jesup <randell-ietf@jesup.org>
X-Mailer: Apple Mail (2.1510)
Cc: rtcweb@ietf.org
Subject: Re: [rtcweb] PPID, UTF-16 and DOMString (Re: RTCWEB Data Channel: Usage of PPID for protocol multiplexing)
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb/>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 08 Feb 2014 20:35:38 -0000

On Feb 8, 2014, at 9:24 PM, Randell Jesup <randell-ietf@jesup.org> wrote:

> On 2/7/2014 6:45 PM, Martin Thomson wrote:
>> I don't think that we need any complication here.  It's a string.
>> 
>> Strings are UTF-8 on the wire.
>> 
>> Strings are UTF-16 (mostly) in JavaScript.
>> 
>> Anything else would generate pain.
> 
> (Back online while traveling; been off mostly due to extended power outage in Philadelphia suburbs)
> 
> 100% agree.  And currently that's what we do in Firefox at the JS->protocol interface:
> 
> void
> nsDOMDataChannel::Send(const nsAString& aData, ErrorResult& aRv)
> {
>  NS_ConvertUTF16toUTF8 msgString(aData);
>  Send(nullptr, msgString, msgString.Length(), false, aRv);
> }
> 
> The JS interface matches WebSockets Send().  The wireline interface is (and should be) UTF8; any registrations should be updated to make this clear.
Great. I'll update the spec. Let's change the name of the PPID...

Best regards
Michael
> 
> -- 
> Randell Jesup
> randell-ietf@jesup.org
> 
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>