+ Start a Discussion
michaelforcemichaelforce 

Can you control PageReference Parameter encoding?

I have noticed that when you add Parameters to a PageReference that have blank spaces, the spaces ultimately get changed to a plus sign (+) upon redirect, but I would rather use the unicode version (%20) instead because that is what the target application is expecting.

 

Anyone know a way to control this?

David VPDavid VP

Take care of it yourself using String.replaceAll() ?

 

It needs regex so don't forget to escape the '+' sign.