1

我使用 Webclient 开发了一个网站数据获取器应用程序。它工作正常。但是我

面临大问题,关于重读元音。我的意思是当我下载字符串时

包含在应用程序中未正确显示的重音元音。

请看我的代码

public string DownloadByWebClient(string url)
    {
        string html = string.Empty;
        try
        {
            using (WebClient client = new WebClient())
            {
                try
                {
                    client.Headers.Add("User-Agent", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)");
                    html = client.DownloadString(url);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                    return "";
                }
                finally
                {
                    client.Dispose();
                }
            }
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message);
            return "";
        }
        return "";
    }

请看我下面的图片。

在网页中。

在此处输入图像描述

应用中

在此处输入图像描述

我一无所知。请帮忙。

4

0 回答 0