+ Start a Discussion
NapsterNapster 

Does Salesforce Support UTF-8 URL Encoding

Dear Friends,

 

I have a small query and was hoping you guys could help me out. It might be a very stupid question and i request you all to kindly bear with me.

 

My salesforce app, basically a case management app where all the cases are raised by the organization is connected to another application called the bridge. Whenever a case is raised at the bridge, the details are sent to salesforce through webservice calls and an XML is sent out and the same case is created at the Salesforce end.

 

This is working fine till now. But now the bridge people have a requirment, where they want to be able to input some special characters in long text field called the "Case notes". This field will again be transferred to the SF app.

 

if(BridgeCase.ListOfNotes.UserNotes != null && BridgeCase.ListOfNotes.UserNotes != '') {
            c.User_Notes__c = BridgeCase.ListOfNotes.UserNotes;//+'§'+System.now();
        }

Now the thing is that they want to encode the special characters into UTF-8 URL encoding (i don't know what it is). They were asking if salesforce will accept the special charaters in the notes field iif sent via this encoding technique?

 

If not, are there any security issues involving the same.

 

Could any of you kindly guide me about this issue?

 

Thanks a ton.

 

Napster.

Vinita_SFDCVinita_SFDC

Hello Napster,

Yes it issupported, for UTF-8 encoding, Salesforce supports only the basic UCS-2 encoding (two byte, Basic Multilingual Plane), and does not support any of the extended UCS-4 characters. Please refer following links:

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_System_EncodingUtil_instance_methods.htm

http://www.salesforce.com/us/developer/docs/api/Content/implementation_considerations.htm

NapsterNapster
Hi Vinita,

So basically, i will not have to do any code change right? When the encoded values will be sent, the actual notes will display on the page accordingly right?
Vinita_SFDCVinita_SFDC

Hello,

 

You can use URLENCODE method for this, for example please refer:

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/pages_security_tips_scontrols.htm

NapsterNapster
Hey Vinita,

I'm sorry, but i could not understand where exactly i have to use the URLENCODE function. Could you kindly guide me. I have posted a part of my code in the original post.

Thanks
hema baskaranhema baskaran
Hi All,

Im new salesforce technology. Im trying to import UTF-8 converted csv to salesforce using dataloader. Still values in salesforce is "?".

For example: Poznańska is changed after importing to Pozna?ska. Please help me on this

Thanks,
Hema