You need to sign in to do that
Don't have an account?
Internationalization Issue
Hello Dev Community:
Issue:
When trying to access characters from the Central European character set (Microsoft’s code page 1250) question marks are returned.
I’m using Outbound Messages and the API. The Outbound Message itself contains the correct Hex values. However, as stated above, when a method call is made on the object, question marks are returned (see code below).
Background:
Edition: Unlimited
Encoding: UTF-8
Data:
ŠŚŤŽŹšśťžź
Outbound Message:
<sf:FirstName>ŠŚŤŽŹšśťžź</sf:FirstName>
Code:
public class ClientNotificationBindingImpl implements com.sforce.soap._2005._09.outbound.ClientNotificationPort{
public boolean notifications(java.lang.String organizationId, java.lang.String actionId, java.lang.String sessionId, java.lang.String enterpriseUrl, java.lang.String partnerUrl, com.sforce.soap._2005._09.outbound.ContactNotification[] clientNotification) throws java.rmi.RemoteException {
// Loop through the ContactNotification array, retrieve the objects, and process them.
for (int i = 0; i < clientNotification.length; i++) {
// Retrieve the object type from the object.
String objectType = clientNotification[i].getSObject().getClass().getSimpleName();
// DebuggingSalesforceLIMSIntegrationLogger.getInstance().logger.debug("###### 1. getFirstName: " + clientNotification[i].getSObject().getFirstName());
SalesforceLIMSIntegrationLogger.getInstance().logger.debug("###### 1. getLastName: " + clientNotification[i].getSObject().getLastName());
SalesforceLIMSIntegrationLogger.getInstance().logger.debug("###### 1. getMiddle_Initial__c: " + clientNotification[i].getSObject().getMiddle_Initial__c());
}
}
}
Log:
[03/31 13:49:23 PDT] [DEBUG] <http-443-Processor25> <SalesforceLIMSIntegrationLogger> ###### 1. getFirstName: Š??Ž?š??ž?
[03/31 13:49:23 PDT] [DEBUG] <http-443-Processor25> <SalesforceLIMSIntegrationLogger> ###### 1. getLastName: Š??Ž?š??ž?
[03/31 13:49:23 PDT] [DEBUG] <http-443-Processor25> <SalesforceLIMSIntegrationLogger> ###### 1. getMiddle_Initial__c: null
Question:
How do I retrieve the correct value instead of the question marks?Thanks in advance,
jd
Message Edited by Rick.Banister on 04-03-2008 08:15 AM
Please explain what you mean by "have your computer set up to handle the proper character set." Are you referring to changing the language setting on the Windows (in my case) box? Or are you referring to the application server's setting?
Best,
jd
Thanks for the response.
I wanted to confirm your previous response. I have asked our IT department to check the languages on the server. I'll keep the community posted.
Best,
jd