Hi,
I'm currently fiddling with protecting sections of a website with .htaccess. Here's an example:
<Files .htaccess> order allow,deny deny from all </Files>
AuthUserFile /etc/httpd/htpasswd AuthName "L'accès à ce site est restreint." AuthType Basic
require valid-user
The configuration works OK (after having created a valid user), but unfortunately, the message in the infobox that pops up on the site displays the french characters é and à incorrectly.
Any idea how I could get this right? I'm more or less starting out from Apache's default httpd.conf.
Cheers,
Niki
Niki Kovacs a écrit :
The configuration works OK (after having created a valid user), but unfortunately, the message in the infobox that pops up on the site displays the french characters é and à incorrectly.
Any idea how I could get this right? I'm more or less starting out from Apache's default httpd.conf.
I found the following workaround. Once my .htaccess file is edited, convert it from UTF-8 to ISO-8859-1 with recode:
# recode utf8..latin1 .htaccess
Now the french message displays correctly.
Any other maybe more orthodox suggestions?
Niki
Niki Kovacs wrote:
Any idea how I could get this right? I'm more or less starting out from Apache's default httpd.conf.
I don't know how to fix your issue but I would run tcpdump and see what apache is actually sending, to rule out the browser being the problem rather than the server.
nate