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
Ross Hopkins 8Ross Hopkins 8 

Restful API Handling of Accents in strings

Hi all,

We have a Drupal website making use of the SalesForce Suite (https://www.drupal.org/project/salesforce) and SalesForce Webforms (https://www.drupal.org/node/2298941) modules to transmit webform submissions into SalesForce. They've been working well for over a year now.

However, we're about to launch a French site and are having difficulties with any value that contains accents. A quick Google tells me so do many other people, regardless of implementation, but I can't find a solution.

Does anyone have any experience of this or advice?

Thanks,

Ross
GauravGargGauravGarg

Hi Ross,

Please use Encoding scheme "unicode, Base64" technology to store accent values. Please go through below article.

https://developer.salesforce.com/forums/?id=906F000000092K7IAI

Hope this helps!!!

Thanks,

Gaurav
Skype: gaurav62990

Ross Hopkins 8Ross Hopkins 8
Hi Guarav,

Could you elaborate on your use of word "store"? That thread reads a little out of context to my scenario - to me at least.

I'm not a developer but will be passing on advice to a third party. Are you saying that the SalesForce modules I've linked to will need to be updated to allow for the passing of special characters from Drupal to SalesForce?

Thanks,

Ross
GauravGargGauravGarg

Hi Ross,

Before sending values from Drupal to Salesforce, we need to encode accent values in "base64, unicode" and pass it into Salesforce. 

Once the data available in Salesforce, we need to again decode the values using the same "Base64, unicode" and then insert into database. 
 

Thanks,

Gaurav