Skip to main content

Unanswered Question Webclient: special characters become squaresRSS Feed

(0)

rikdes
rikdes

Member

Member

0 points

17 Posts

Webclient: special characters become squares

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 framework
Another strange thing, if i set the myParams as 3th parameter wc.UploadStringAsync(new Uri(path + "Translations.vf/UpdateTranslations"), "POST", myParams), it never works           

rikdes
rikdes

Member

Member

0 points

17 Posts

Re: Webclient: special characters become squares

Is there nobody who has a solution for this issue?

rikdes
rikdes

Member

Member

0 points

17 Posts

Re: Re: Webclient: special characters become squares

I found a solution.
I did URL encoding (HttpUtility) and the problem was solved

  • Unanswered Question
  • Answered Question
  • Announcement