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
iSfdciSfdc 

Handling Special characters in Java Interfaces

Hi ,
 
I am using Java interfaces to create Accounts from the database tables to Salesforce.But my interface terminates if special  characters occur in the data.These special characters include ' (apostophe),\ ,# and a box-like character.
When the program encounters such special characters,it terminates due to unhandled exception.
 
Could anyone please help me on how to handle such special characters?.Or is it possible to replace these special character with some other special character.
 
 
 
Thanks & Regards,
Gani
Rick.BanisterRick.Banister
Java cannot be your problem, since it is natively able to handle all character sets. It would  almost have to be because your database character set is not UTF-8. The ISO character set (typically ISO-859) special characters do not translate. If you can change your database character set to UTF-8 (and not corrupt your data in so doing), you will not have any more issues.
kevin.chileskevin.chiles

Good answer!  But how do I go about setting my data base to these settings?