Hi all, I think the implementation of HttpMethodParams#getHttpElementCharset() has a problem. In default, httpclient will choose US-ASCII as the charset to decode the http element, such as some headers.
But I do meet some servers from which the LOCATION header is in some other charset, such UTF8, so that the httpclient cannot handles the redirection(in my application, i handle it by myself) correctly. For example, one server response such a header: Location: http://www.abc.com/****(some chinese character)/hello/world The above url contains some Chinese characters in some other charset, such as GBK. The right way of httpclient should be: 1. detect the charset of the url. 2. decode the url in that correct charset to a java.lang.String. 3. construct correct header instance. Am I right? Feng
