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

Chatree Srichart commented on OFBIZ-4337:
-----------------------------------------

I have tried to encode the stream before posting but it didn't work.
This is my code:
...
...
Charset charset = Charset.forName("UTF-8");
String content = httpClient.post(new String(stream.getBytes(charset)));
...
...

Regards,
Chatree Srichart

> HttpClient does not support UTF-8
> ---------------------------------
>
>                 Key: OFBIZ-4337
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4337
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Ubuntu
>            Reporter: Chatree Srichart
>            Priority: Critical
>         Attachments: HttpClient.patch, HttpClient.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I tried to send XML message includes Thai character using 
> HttpClient.post(stream) method but the receiver got an unexpect character 
> replaced to the Thai character has been sent. If I encode the stream using 
> UTF-8 then it works fine.
> I have attached the patch file to solve this problem. Please commit the patch 
> if it is useful for OFBiz.
> Regards,
> Chatree Srichart 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to