I am just learning about EncodingUtil.urlEncode(targetString,'UTF-8'); and encoding schemes. targetString will print out something that looks like this:
String targetString = 'ckm_campaign_id=999' + '&ckm_key=euu87nn' + '&ckm_subid=Company Name&' + 'ckm_subid_2=Partner&' + 'ckm_subid_3=API&' + 'first_name=' + l.FirstName + '&last_name=' + l.LastName + '&email_address=' + l.Email + '&phone=' + l.Phone + '&personal_credit_score=' + l.Est_Credit_Score__c;
what I want is for it to look like this with just the plus signs:
I am pulling the data from the Lead object so the only way I know of how to do this is I would have to print out the values, hard code in the plus signs, and then insert them back in. I feel like this is inefficient and could create a lot of mistakes.
Is there an APEX method or way of encoding with just the + signs?