httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Bray" <nood...@gmail.com>
Subject Re: [users@httpd] utf-8 encoded htaccess?
Date Mon, 10 Sep 2007 00:49:04 GMT
On 10/09/2007, Martin Strand <do.not.eat.yellow.snow@gmail.com> wrote:
> I'm using non-ascii characters for AuthName but they show up as garbage in
> firefox.
> Changing the encoding for .htaccess from utf-8 to iso-8859-1 solves the
> problem but I'd like to support utf-8.

It takes a bit of backtracing through all the RFCs to find an
authoritative answer to this.

RFC2616#14.47: References RFC2617 (via a footnote reference)
RFC2617#1.2: realm-value = quoted-string

.. so back to 2616 for a definition of quoted-string ..

RFC2616#2.2

quoted-string  = ( <"> *(qdtext | quoted-pair ) <"> )
qdtext         = <any TEXT except <">>

.. and ..

Words
   of *TEXT MAY contain characters from character sets other than ISO-
   8859-1 [22] only when encoded according to the rules of RFC 2047
   [14].

Gah, another RFC: http://www.faqs.org/rfcs/rfc2047.html

I'm not familliar with that one, and it doesn't look pretty, but I
hope this hopes to get you closer to an answer.

-- 
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message