On Mon, 10 Sep 2007 02:49:04 +0200, Vincent Bray <noodlet@xxxxxxxxx> wrote:
On 10/09/2007, Martin Strand <do.not.eat.yellow.snow@xxxxxxxxx> wrote:I'm using non-ascii characters for AuthName but they show up as garbage infirefox. 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.
Thanks, but unfortunately MIME encoding the realm name doesn't help: AuthName =?utf-8?B?5pel5pys6aaZ5aCC?=This must be a UA problem - none of IE/FF/Opera decodes the name, they must've forgotten to read rfc2617. :) I know most UAs understand MIME encoding in UTF-8 filenames, which is a quoted-string too:
Content-Disposition: attachment; filename="=?utf-8?B?5pel5pys6aaZ5aCC?=" Martin --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx