Mark Leone wrote:
<snip>
If you want to know what your default charset is, invoke getDigestEncoding(). Whatever value is returned is the charset you need all your users to use when they authenticate (or a charset that is compatible within the ranges of characters that the users will be entering). If they will be using other charsets, you should be able to determine what they're using from the "Content-Type" entity header field in the HTTP request message, and then set that charset value for your realm using setDigestEncoding(). The charset will be specified as a parameter value in the "Content-Type" field. For example,

Content-Type: text/html; charset=ISO-8859-4 See section 14.17 of the HTTP spec; here's the link:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17

Be aware that I did some testing of digest authentication and passwords that contained UTF-8 characters (random Arabic and Japanese as far as I recall) and I noticed that the browsers mangled the UTF-8 passwords during the generation of the digest and did so in an inconsistent manner.


Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to