What is the right encoding/charset in nginx configuration file to display accentuated characters in HTTP authentication message ?
For example, this conf file :
server {
...
location / {
auth_basic "Zone sécurisée";
auth_basic_user_file .htpasswd;
}
}
Is displaying in Firefox' prompt window :
"Zone sécurisée"
No real solution or explanation found on the web. I tried to replace é
in conf file by é
, by &
, by é
, by =C3=A9
or adding charset utf-8
directive or =?UTF-8?
at the beginning of the string but nothing works !
Official nginx doc, talking about a "string" without more explanation about encoding of accentuated characters.
NB : I have no problem with similar .htaccess
file for Apache