how do i set charset to utf-8 for updating my existing record
I am trying set charset to utf-8 for updating my existing record
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
String url = "http://crm.zoho.com/crm/private/xml/Leads/updateRecords";
String ticket = "1af318cc96ecd9c1527434d455380a61";
String details = "<Leads>" + "<row no=\"1\">" + "<FL value=\"Company\">पकी कंपनी का ना</FL>"
+ "<FL value=\"Website\">testprabhu3.com</FL>" + "<FL value=\"Street\">testprahu</FL>"
+ "<FL value=\"Address Line 2\">testprahu</FL>" + "<FL value=\"City\">testprahu</FL>"
+ "<FL value=\"Zip Code\">123123</FL>" + "<FL value=\"Country\">अमेरिकन समोआ</FL>"
+ "<FL value=\"Phone\">+684 2131</FL>" + "<FL value=\"Title\">Mr.</FL>"
+ "<FL value=\"First Name\">Peter</FL>" + "<FL value=\"Last Name\">Twiggs</FL>"
+ "<FL value=\"Email\">prabhjyotsingh@gmail.com</FL>" + "<FL value=\"Mobile\">+684 111111</FL>"
+ "<FL value=\"Alternate Email\"></FL>" + "<FL value=\"Designation\"></FL>"
+ "<FL value=\"Instant Messaging\">asdsad</FL>" + "<FL value=\"Instant Messaging Type\">Skype</FL>"
+ "</row>" + "</Leads>";
PostMethod post = new PostMethod(url);
post.setParameter("ticket",ticket);
post.setParameter("apikey","WTEkBZQYcRavmMT7WT*fCOptthiUFEYebcnumgbMjWR7H4Wb38rkvA$$");
post.setParameter("newFormat",newFormat);
post.setParameter("id","39752000001751015");
post.setParameter("xmlData",details);
HttpClient httpclient = new HttpClient();
PrintWriter myout = null;
try
{
long t1 = System.currentTimeMillis();
int result = httpclient.executeMethod(post);
String ss = new String(post.getResponseBody());
System.out.println(ss);
}
catch (IOException e)
{
e.printStackTrace();
}
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
i get response as :
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/crm/private/xml/Leads/updateRecords"><result><message>Record(s) updated successfully</message><recorddetail><FL val="Id">39752000001751015</FL><FL val="Created Time">2010-05-10 14:26:19</FL><FL val="Modified Time">2010-05-11 14:05:20</FL><FL val="Created By">Ranganathan</FL><FL val="Modified By">Ranganathan</FL></recorddetail></result></response>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
but when i check the same by log in into my account i see comapny name as "??? ?? ??"
could some one help me with this?