I have a web server configured with Basic Authentication and LDAP. Usually, I can log in with usernames containing english alphabets for all 3 browsers. However, if the username contains special characters like (example german names like RÈM WÉB), the web server returns a 401 and I get the authentication pop up again i.e. apache fails to validate.
After checking the apache access.log, I could tell that when I login from firefox and chrome, the encoding seems different. Is this encoding decided by the browser or by the web server ? I assume it is browser cause things work fine with firefox. Where can I set this encoding scheme in chrome ?
Also, to confirm it is a browser thing, I can see that the Authorization Header sent is different for the same user in Firefox and Chrome. Clearly the header is not encoded using the same scheme by the browser. Any suggestions ?
More debugging tells that firefox (and also IE) use ISO8859-1 for encoding and chrome is using UTF-8.
I will be ok even if the Apache web server tries multiple times using (if ISO8859-1 returns a 401, it should try again with UTF-8). Either a browser or a web server solution should be ok.