Published on wayland's Computer Stuff (http://computerstuff.jdarx.info)
Lack of Internationalisation in HTTP Authentication
By wayland
Created 2007-11-27 01:03

Lack of internationalisation has caused problems in HTTP Authentication. This article discusses how to work around that.

Table of Contents

  1. The Problem [1]
  2. The Solution [2]
    1. Short-term: use ASCII [3]
    2. Short-term: Make the server interpretation browser-dependant [4]
    3. Medium-term: Change the software to support RFC 2047 [5]
    4. Long-term: Change the RFC [6]

The Problem

The problem is that ASCII seems to be the only character set that works universally with HTTP Authentication. Internet Explorer seems to use ISO-8859-1 and Windows-1252. Firefox seems to use UTF-8 and Windows-1252, and Opera seems to use UTF-8 universally.

The Solution

Short-term: use ASCII

Fairly self-explanatory, really. This is the soft option.

Short-term: Make the server interpretation browser-dependant

Not a wonderful idea, but better than nothing. To implement something like this, you'll need to know what the different browsers do. Fortunately, Mr. Bjoern Hoehrmann has already done some investgation of which browsers support which character set [7].

Medium-term: Change the software to support RFC 2047

RFC 2047, MIME Part Three: Message Header Extensions for Non-ASCII Text [8] specifies how UTF-8 should be encoded in headers. When the software actually supports this, it will be wonderful. This also isn't a wonderful long-term solution, because it assumes that the web is basically iso-8859-1; see Mr. Martin J. Düerst's post [9].

Long-term: Change the RFC

You're probably familiar with the solution by now; change the RFC to explicitly mandate that encoding be supported for HTTP Authentication. There was discussion of this in September and October 2006 which can be found in the IETF HTTP Auth Archives [10].


Source URL: http://computerstuff.jdarx.info/content/lack-internationalisation-http-authentication

Links:
[1] http://computerstuff.jdarx.info/content/lack-internationalisation-http-authentication#toc0
[2] http://computerstuff.jdarx.info/content/lack-internationalisation-http-authentication#toc1
[3] http://computerstuff.jdarx.info/content/lack-internationalisation-http-authentication#toc2
[4] http://computerstuff.jdarx.info/content/lack-internationalisation-http-authentication#toc3
[5] http://computerstuff.jdarx.info/content/lack-internationalisation-http-authentication#toc4
[6] http://computerstuff.jdarx.info/content/lack-internationalisation-http-authentication#toc5
[7] http://lists.osafoundation.org/pipermail/ietf-http-auth/2006-September/000374.html
[8] http://www.ietf.org/rfc/rfc2047.txt
[9] http://lists.osafoundation.org/pipermail/ietf-http-auth/2006-September/000383.html
[10] http://lists.osafoundation.org/pipermail/ietf-http-auth/