Re: [http-state] [httpstate] #11: Consider defining how to map a cookie-string into unicode

"Anne van Kesteren" <annevk@opera.com> Fri, 12 March 2010 07:06 UTC

Return-Path: <annevk@opera.com>
X-Original-To: http-state@core3.amsl.com
Delivered-To: http-state@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DD7E23A6B69 for <http-state@core3.amsl.com>; Thu, 11 Mar 2010 23:06:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.213
X-Spam-Level:
X-Spam-Status: No, score=-7.213 tagged_above=-999 required=5 tests=[AWL=-0.614, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EnFUkVqd3q4j for <http-state@core3.amsl.com>; Thu, 11 Mar 2010 23:06:19 -0800 (PST)
Received: from smtp.opera.com (smtp.opera.com [213.236.208.81]) by core3.amsl.com (Postfix) with ESMTP id 76B8C3A6AC6 for <http-state@ietf.org>; Thu, 11 Mar 2010 23:06:10 -0800 (PST)
Received: from annevk-t60 (5355737B.cable.casema.nl [83.85.115.123]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o2C76EQh011874 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <http-state@ietf.org>; Fri, 12 Mar 2010 07:06:14 GMT
Content-Type: text/plain; charset="utf-8"; format="flowed"; delsp="yes"
To: http-state@ietf.org
References: <062.544c0bb072716f6c8dcb113edd607a66@tools.ietf.org> <071.e0b5df3d3c55e1e3310622ce8f701733@tools.ietf.org>
Date: Fri, 12 Mar 2010 08:06:14 +0100
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
From: Anne van Kesteren <annevk@opera.com>
Organization: Opera Software ASA
Message-ID: <op.u9f0ooh964w2qv@annevk-t60>
In-Reply-To: <071.e0b5df3d3c55e1e3310622ce8f701733@tools.ietf.org>
User-Agent: Opera Mail/10.50 (Linux)
Subject: Re: [http-state] [httpstate] #11: Consider defining how to map a cookie-string into unicode
X-BeenThere: http-state@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discuss HTTP State Management Mechanism <http-state.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/http-state>
List-Post: <mailto:http-state@ietf.org>
List-Help: <mailto:http-state-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Mar 2010 07:06:21 -0000

On Thu, 11 Mar 2010 00:19:07 +0100, httpstate issue tracker  
<trac@tools.ietf.org> wrote:
> #11: Consider defining how to map a cookie-string into unicode
> --------------------------------+-------------------------------------------
>  Reporter:  ietf@…              |        Owner:
>      Type:  defect              |       Status:  closed
>  Priority:  major               |    Milestone:
> Component:  cookie              |      Version:
>  Severity:  -                   |   Resolution:  fixed
>  Keywords:                      |
> --------------------------------+-------------------------------------------
> Changes (by ietf@…):
>
>   * status:  new => closed
>   * resolution:  => fixed
>
>
> Comment:
>
>  As discussed on the list:
>
>  The draft treats the cookie values as opaque octets throughout for use
>  on the wire.  I've added a SHOULD-level requirement to use a UTF8 when
>  converting the octets to characters (e.g., for use in the user agent's
>  user interface).
>
>  Given that the encoding issue doesn't appear to affect
>  interoperability on the wire, I think a SHOULD-level recommendation is
>  appropriate here.  If specific APIs (e.g., document.cookie) have more
>  specific needs, they can add additional requirements.

FWIW, XMLHttpRequest inflates/deflates bytes for HTTP header values. I.e.  
uses ISO-8859-1 (not mapped to Windows-1252 in this specific instance). I  
would assume document.cookie behaves the same in most browsers...


-- 
Anne van Kesteren
http://annevankesteren.nl/