Hi all,
i used a web 2 lead to implement my salesforce sandbox. I've got a problem with the accents in the data sent.
PHP Code:$header = "POST /servlet/servlet.WebToLead?encoding=UTF-8 HTTP/1.0\r\n";
in the $req variable are all data that i passed to salesforce.PHP Code:fputs ($fp, $header . utf8_encode($req));
So the problem is that in salesforce, all data passes with wrong accents like A~ .
I have to set something on my sandbox??
Any helps!!!
So since you are sending the data you can try this:
ORPHP Code:$req = htmlspecialchars($req);
Not sure if this will work, but it's worth a try!!PHP Code:
$req = '<![CDATA[' . $req . ']]>';
hope this helps
~Mike
Bookmarks