WP7 webclient DownloadStringAsync
Bonjour, pour récuperer le code source d'une page HTML, j'utilise la méthode web client DownloadStringAsync, comme suit:
Code:
1 2 3 4 5 6
|
string Url = ... ;
WebClient wc = new WebClient();
wc.DownloadStringAsync(new Uri("Url"));
wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted); |
Cependant la chaine obtenu n'a pas les caracteres speciaux, à la place j'obtiens des '�'!
Avez vous une idée?
Cela viens surement du téléchargement.
Merci .