Skip to main content
Microsoft Silverlight
Home Forums General Silverlight Getting Started Webclient: special characters become squares
2 replies. Latest Post by rikdes on October 27, 2009.
(0)
rikdes
Member
0 points
17 Posts
10-22-2009 9:09 AM |
I've translation files from other applications that I have to update with silverlight.I'm using the webclient: the languages I've to update are the Scandinavian languages, Italian, French, Polish etc....but characters like à,ù etc are becoming "squares" in my database.
My code: public void updateTranslations(string myParams) { WebClient wc = new WebClient(); string s = ""; wc.UploadStringCompleted += delegate(object sender, UploadStringCompletedEventArgs e) { s = e.Result; }; wc.UploadStringAsync(new Uri(path + "Translations.vf/UpdateTranslations" + myParams), "POST", ""); }
I use also asp MVC frameworkAnother strange thing, if i set the myParams as 3th parameter wc.UploadStringAsync(new Uri(path + "Translations.vf/UpdateTranslations"), "POST", myParams), it never works
10-26-2009 9:23 AM |
Is there nobody who has a solution for this issue?
10-27-2009 4:05 AM |
I found a solution.I did URL encoding (HttpUtility) and the problem was solved