Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-4337

HttpClient does not support UTF-8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Trunk
    • Trunk
    • framework
    • None
    • Ubuntu

    Description

      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

      Attachments

        1. HttpClient.patch
          2 kB
          Chatree Srichart

        Activity

          People

            hansbak Hans Bakker
            chatree Chatree Srichart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified