email - How to remove the space in the URL using java? -


We use the URL for the unsubscribed part of the bulk email, of course, the email went to the spam folder is. Then there are spaces in two places in the URL. Otherwise it can not be in space and works fine. Occurs on the name of an API (ii. Api = getOutsideUnsub scribeContact). For example:

Click here & lt; In http: //XXX.XXX.XXX/ parameter values ​​(i.e. & amp; 5f8pKsyMi8l0)

is another location. / Servlet / Zonieux servlet? API = OutoutsUDUUINUB author and E66V62 627 = true and M9UCC1URRI = 634 and H2BNP44Ill 7 = 184621 and H5P8PKSMi 8L 0 = 0 and H2Z NP64-M8 = Faucet & H2 TNP86 VP9 = 5 & H2 GQ 54Si2 = 1717 & gt; To unsubscribe.

Use URLEncoder.encode (String S, String Enc)

Use it to replace the empty space with the + mark as necessary.

Comments