hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Smith (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1667) RequestBuilder ignores Encoding
Date Mon, 20 Jul 2015 10:35:04 GMT
Sergey Smith created HTTPCLIENT-1667:

             Summary: RequestBuilder ignores Encoding 
                 Key: HTTPCLIENT-1667
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1667
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.5
            Reporter: Sergey Smith
            Priority: Critical

Sorry for my English.

Class org.apache.http.client.methods.RequestBuilder in method build() FORCE to use ISO-8859-1

For example my using:
HttpUriRequest post = RequestBuilder.post().setUri(url)
	.addParameter("xml", xml).build();

QuickFix (line ~481):
            if (entityCopy == null && (HttpPost.METHOD_NAME.equalsIgnoreCase(method)
                    || HttpPut.METHOD_NAME.equalsIgnoreCase(method))) {
--                entityCopy = new UrlEncodedFormEntity(parameters, HTTP.DEF_CONTENT_CHARSET);
++                entityCopy = new UrlEncodedFormEntity(parameters, charset != null ? charset

I think it also may to be changed in other places in class.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message