im tring to grab some text from an existing web page using this method:
try
{
WebClient client = new WebClient();
result = client.DownloadString(url);
int start = result.IndexOf("startpointstr") ;
end = result.IndexOf("EndpointStr");
result = result.Substring(start, end - start);
string.Format(
MessageBox.Show(result);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
in the positive part, it works for English but for languages ββlike Hebrew it returns unrecognized characters (and not Hebrew) is there a way to reformat the returned string?
source
share