[
https://issues.apache.org/jira/browse/OFBIZ-4337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chatree Srichart updated OFBIZ-4337:
------------------------------------
Attachment: HttpClient.patch
Hi Scott,
Your approach is work fine for me. I re-attach a patch for that but I changed a
bit for the variable's name. I see in the Java Doc for the OutputStreamWriter
class use "charset" as lower case,
http://download.oracle.com/javase/6/docs/api/java/io/OutputStreamWriter.html#OutputStreamWriter%28java.io.OutputStream,%20java.lang.String%29
. So, my patch is using "streamCharset" instead of "streamCharSet".
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
>
> 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