[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564694#comment-13564694
 ] 

Andrew Miller commented on HTTPCLIENT-1308:
-------------------------------------------

I'm looking at org.apache.http.client.fluent.Request.

Oh I see, it's modifying a map that was passed in from somewhere else, and that 
somewhere else must still use the map.

I'm doing this and it's still encoding as latin-1 (the default) for me:

        Executor executor = Executor.newInstance();
        Request request = Request.Post("http://localhost";);
        request.bodyString("t\u00e9st\u2200", null);
        request.elementCharset("UTF-8");
        System.out.println("'" + 
executor.execute(request).returnContent().asString() + "'");
                
> Request.elementCharset doesn't do anything
> ------------------------------------------
>
>                 Key: HTTPCLIENT-1308
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1308
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: Fluent HC
>    Affects Versions: 4.2.2
>            Reporter: Andrew Miller
>
> See the source. Request.elementCharset  of the fluent API just puts something 
> in a private map which is not used anywhere other than some method to remove 
> an element from the map.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to