Http task utf8 not decoding correctly

Hello Flowable developers,

I have sent an http request to create new variable (using http task) with this parameters :
Request headers:
Accept: application/json;charset=UTF-8
Cache-Control: no-cache
Accept-Encoding: gzip,deflate
Content-Type: application/json;charset=UTF-8

/**in my json value i send a special characters/
Request body
[
{
“name”:“dossier”,
“type”:“json”,
“value”:{
“nom_Client”:“test فلان”},
“scope”:“local”
}
]
But, using swagger to get this variable, I am getting the following :
{
“name”: “dossier”,
“type”: “json”,
“value”: {
“nom_Client”: “test ???”,
“montantCredit”: “1.2E8”,
“typeCredit”: “”
},
“scope”: “local”
},
==> Probably it is encoding the body with a wrong format at the level of HTTP
Task

NB : when I try the same request from Postman it work perfectly


similarly swagger return data correctly

Is there a way to handle this ?

Best regards

It looks like that’s a limitation of Swagger. But why is this a problem? Are you exposing Swagger as an end-user API?

In the HttpTask adding requestBodyEncoding to utf-8 solves the issue.

<serviceTask id="httpTask1" name="HTTP task" flowable:parallelInSameTransaction="true" flowable:type="http">
      <extensionElements>
        .......
        <flowable:field name="requestBodyEncoding">
          <flowable:string><![CDATA[utf-8]]></flowable:string>
        </flowable:field>
       .....
      </extensionElements>
    </serviceTask>

Note: The BPMN XML spec is generated using the modeller in flowable enterprise edition (Flowable Design)