Sachin Puri

Sachin Puri

  • NA
  • 1
  • 0

Chinese characters getting garbled at server end.

Aug 6 2010 3:03 AM
Hi All,

I am having a tough time in sending the Chinese Characters through my silverlight application to other server.

Assume that I have a url which is having Chinese Characters in it. I am usnig webclient now and once the request reached at server. it is getting grabled as ''. Pleae find the code below -

string strName= "??";
url = adminUrl + "DataUpdateHelper?name=" + strName;
WebClient webClient = new WebClient();
webClient.Encoding = Encoding.UTF8;
Uri uri = new Uri(url);
webClient.OpenReadCompleted += new OpenReadCompletedEventHandler(ReadEventCompleted);
webClient.OpenReadAsync(uri);

Does anyone knows the solution for this?



Thanks,
Sachin