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
spraksprak 

SOAP call returns "java.io.UTFDataFormatException Invalid byte 1 of 1-byte UTF-8 sequence"

Greetings all; I am attempting to create leads in SalesForce using the SOAP API. The data used to build the SOAP call comes from a HTML form that is submitted from our web site. It appears that when the form data includes utf8 type characters (special German characters, French characters, etc.) the SOAP call comes
back with the error message:
java.io.UTFDataFormatException Invalid byte 1 of 1-byte UTF-8 sequence

My form is setup like this:


But the page itself has no character encoding definition. I am using PHP for interfacing with the SalesForce API. Anyone out there know what needs to be done to ensure that these international characters go through?

Message Edited by sprak on 04-16-2004 11:47 AM

Message Edited by sprak on 04-16-2004 12:07 PM

zakzak
Its likely that you're sending iso8859 data marked as (or defaulted to) UTF-8, make sure that your client is sending a charset='utf-8' attribute on the content-type header.

Cheers
Simon