RE: [users@httpd] htaccess-Files in UTF-8!?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bill!

Thanks for the fast answer!
I do a telnet like you said and this comes back:

HTTP/1.1 401 Authorization Required
Date: Thu, 04 Aug 2005 16:16:35 GMT
Server: Apache/2.0.49 (Linux/SuSE)
WWW-Authenticate: Basic realm="Zugang zu den Arbeitsanweisungen M÷bel"
Vary: accept-language,accept-charset
Accept-Ranges: bytes
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Content-Language: en

Okay, the browser get the wrong charset, so it can't display the right char.
How can I change the charset for the ErrorDocuments?
But the Errordocument is not the only problem in this case. The htgroups and
the htpasswd is read in ISO too. So user with special chars in there login
(like ö,ä,ü) can't login. Which one does the password check, Apache or
browser?

Hans-Peter


-----Original Message-----
From: William A. Rowe, Jr. [mailto:wrowe@xxxxxxxxxxxxx]
Sent: Thursday, August 04, 2005 6:11 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] htaccess-Files in UTF-8!?


Sniff the request with netcat or telnet, attempting to

GET /file.html HTTP/1.1
Host: www.example.com

presuming file.html is protected, see what comes back.  Do you have your
global utf8 charset set up, or set up to use utf8 for at least your 401
error document?

If the content-type; ...; charset= is not utf8, that's your issue.  If
it is, I'm afraid Craig is right - it's an issue in the browser.

Bill

Droska, Hans-Peter wrote:
> Hi!
> 
> We have a problem with our htaccess-Files since we have changed our
charset
> to UTF-8.
> Our Apache shows the HTML-Pages perfect but if I try to access a
restricted
> area, the popup with username and password show the text in "AuthName" in
> ISO8859-1.
> If I covert the htaccess-File with "iconv -f UTF-8 -t ISO8859-1 -o
.htaccess
> .htaccess" everything looks pretty fine.
> So, what do we have to do that the Apache show the Password-Request also
in
> UTF-8 instead of ISO8859-1??
> 
> Thanks,
> Hans-Peter
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> .
> 

---------------------------------------------------------------------
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

---------------------------------------------------------------------
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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux