When I use the GetMethod class to send text with special characters (German Umlaute "���") in the request parameters, the special characters are not encoded correctly. This happens when I use method HttpMethodBase.setQueryString(NameValuePair[] params) to set the query parameters.
I saw that Release 2.0 Beta 2 fixed that with bug fix 20481. Special characters are now encoded differently but still wrong, as far as I can see. Method HttpMethodBase.setQueryString(NameValuePair[]) calls formUrlEncode(params, HttpConstants.HTTP_ELEMENT_CHARSET) to encode the parameters. The value of HTTP_ELEMENT_CHARSET is US-ASCII. When I change the charset to HttpConstants.DEFAULT_CONTENT_CHARSET (which is ISO-8859-1), the German "Umlaute" are encoded correctly. I checked that with the code in CVS HEAD. Is this a bug or should really only the US-ASCII characters be supported in a request URI? Regards, Martin Schnyder --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
