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
rd7rd7 

Submit Japanese chars via API

We have a landing page on our website (classic asp) which is entirely in Japanese.  The content is submitted as a new lead to SF via SOAP request with the API.  The content is being populated in Salesforce but it is not carrying over the japanese characters at all.

I've tried adding this to the top of the request:  <?xml version=\"1.0\" encoding=\"utf-8\"?> and also ("Content-Type", "text/xml; charset=SHIFT_JIS")

 

Any help or suggestions would be appreciated!

sfdcfoxsfdcfox

The question is... what content encoding is your site using to accept the Japanese characters? If your page is using Shift_JIS, for example, then you would have to set "encoding" to match the character encoding that is being accepted by your server. The Content-Type header does not override the xml encoding directive.