ben*_*ams 0 html c# converter utf-8
以下网址:
用一些字符串回复一些奇怪的字符(你可以浏览和看到)我试图将它转换成一个真正的字符串(我知道它应该是希伯来语).
我的代码:
string html = client.DownloadString(SITE_URL).Replace("\"", string.Empty);
Run Code Online (Sandbox Code Playgroud)
将webclient的编码设置为UTF-8:
WebClient client = new WebClient();
client.Encoding = System.Text.Encoding.UTF8;
string html = client.DownloadString(SITE_URL).Replace("\"", string.Empty);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
209 次 |
| 最近记录: |