hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Miller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1308) Request.elementCharset doesn't do anything
Date Mon, 28 Jan 2013 21:23:21 GMT

    [ 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message