I am making a Windows phone application that can use json from this link http://dir.yummly.com/4/public/8a753a70358c827b01358da787bd68f3 , however, when I try to load the data asynchronously, I cannot get e.result on readable language. here is my c # code -
Uri sub4 = new Uri("http://dir.yummly.com/4/public/8a753a70358c827b01358da787bd68f3"); string kit = sub4.ToString(); WebClient w = new WebClient(); w.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted); w.DownloadStringAsync(sub4); MessageBox.Show("done"); } void wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) { string fres = e.Result;
And then I want to deserialize e.result. My code works correctly for any other json url. And since I am working on a Windows Phone application, so I cannot use other webcilent methods such as DownloadData and DownloadString. I also saw a lot of conversions between utf8 and unicode, but none of them worked. Can anyone help?
source share