Flowable not able to serialise Arabic characters

Hi All,

I am having challenges with Flowable serialising Arabic text when saving the json response from an HTTP task using this property saveResponseVariableAsJson.

The Arabic text is being replaced with question marks when reading the data from the Flowable Database.

Anyone with knowledge on how to ressolve this issue?

Thanks in advance.

Did you set the encoding to UTF-8?

Hi @CElbersen

Thank you so much for getting back to me. May you please elaborate where exactly I need to set this encoding to UTF-8?

Thanks.

On the HTTP (service) Task it’s the property requestBodyEncoding

In the modeller this field:
image

1 Like

Hi there @CElbersen

Thanks once again for your response.

Do you mean something like the below:

 <serviceTask id="sid-XXXXXXXX-YYYY-ZZZZ-AAAA-AASSAASS" name="GetUsers" flowable:type="http" requestBodyEncoding="UTF-8">
      <extensionElements>
        <flowable:field name="requestMethod">
          <flowable:string><![CDATA[GET]]></flowable:string>
        </flowable:field>
        <flowable:field name="requestUrl">
          <flowable:expression><![CDATA[${userServiceUrl}/users?userId=${userId}]]></flowable:expression>
        </flowable:field>
        <flowable:field name="requestHeaders">
          <flowable:string><![CDATA[Service-Name: user-service]]></flowable:string>
        </flowable:field>
        <flowable:field name="failStatusCodes">
          <flowable:string><![CDATA[4XX, 5XX]]></flowable:string>
        </flowable:field>
        <flowable:field name="responseVariableName">
          <flowable:string><![CDATA[users]]></flowable:string>
        </flowable:field>
        <flowable:field name="saveRequestVariables">
          <flowable:string><![CDATA[true]]></flowable:string>
        </flowable:field>
        <flowable:field name="saveResponseVariableAsJson">
          <flowable:string><![CDATA[true]]></flowable:string>
        </flowable:field>
      </extensionElements>
    </serviceTask>

In my IDE it is saying, requestBodyEncoding=“UTF-8”:

Or it does not matter?

Hey @flowable12345,

Something like:

<flowable:field name="requestBodyEncoding">
    <flowable:string><![CDATA[UTF-8]]></flowable:string>
</flowable:field>

Cheers,
Filip

1 Like

Thanks a lot. You don’t know how much you have saved me :clap:

Thanks a lot. You don’t know how much you have saved me :clap: