Plus signs in rest api

1
+1
-1

I'm using the BonitaSoft rest API to store and update variables. Specifically I'm using /runtimeAPI/setProcessInstanceVariables. All data is being urlencoded before I send it.

If the data has a plus sign (+) in it, it gets replaced with a space. All other characters are being stored with no problem.

Has anyone else run itnto this?

Thanks, Francis

1 answer

1
0
-1

Yes - it's a standard WEB thing - nothing to do with Bonita.

"+" is a shorthand for "%20" in URI encoding and is used to encode spaces into URLs. To avoid it, you have to encode the "+" as "%2B".

Notifications