function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.