Plus signs in rest api

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 Like

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”.