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
raggifjraggifj 

URL Encoding

Hallo.

I am in a pickle. I am using the appexchange program Clicktools and I am sending e-mails to my contacts for them to verify infomation and/or change them.

I am using an e-mail template inside Salesforce. I just take the surveys url fx; http://clicktools.com/survey.php=?b1l3l2asf2 and add merge fields values as such;

http://clicktools.com/survey.php=?b1l3l2asf2&q1={!Contact_firstname} ..........
q1 = question nr 1
 and .... = so on and so on.
 
The thing is some of the characters in my naitive language (Icelandic) are not available through URLs. Special characters such as Æ, Þ, á and Ó seem to dissapear and the value that comes up when the contact press's his link will be correct but all those special characters come up as gibberish box symbols. I was wondering if there are any url encodeing options through those email templates. I know they aren't used every day to send out links with syntex's in them but in ClickTools they have this !urlencode{syntexs} option which allows these special characters to appear valid and I am wondering if salesforce offers a similer thing.

If not, how do you recommend I take care of this problem.

Best regards
Ragnar Fjölnisson
Broadway @ arnol .net
 
 


Message Edited by raggifj on 01-30-2008 03:19 AM
rickmerolerickmerole
Hi Ragnar,

Having the same problem. I want to send field contents as part of a HTTP/GET request, and need to URL-encode them.

Look at the post here:
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=398
... and the quote ...
"Interestingly enough we will be adding urlEncode() to the page formula language soon (release is still TBD)."

What I will try to do is to create a custom field that takes care of URL encoding. I am not using the API (yet), and may be doing things a little complicated during my day one of using SF...