How to replace & (ampersand) with %26 in the URL
312899Dec 9 2010 — edited Dec 10 2010I have the problem that we have names coming for the database which can contain an ampersand, e.g "Good & Bad".
These names are used to construct a link.
If the link contains the ampersand it does not work, e.g. fails with http error 400.
If the link could contain a %26 instead, if should work.
But, how can I make Apex do it?
I have Apex 3.2 and 4.