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
Abhishek KedariAbhishek Kedari 

Character/String Encoding

Hi,
   
    I am sending some data written in japnese format from apex code to my other application using callout. But when I recieve data at other application servlet from apex, the data is garbled like   'æ ªå¼<8f>ä¼<9a>社Ji2'

Can anyone please tell me how I can handle this ? 

Thanks,
Abhishek
BalajiRanganathanBalajiRanganathan
you  might have to set the charset in the request and response headers
req.setHeader('Content-Type','text/html; charset=ISO-8859-1').

also you have to check on the callout side if they can process ISO charset

also refer Internationalization and Character Sets in the below doc.
http://www.salesforce.com/developer/docs/api/Content/implementation_considerations.htm