webclient乱码
时间:2015-3-24类别:编程学习
webclient乱码
webclient乱码
一、被采集的网站是中文编码 (gb2312)
WebClient web = new WebClient();
web.Encoding = System.Text.Encoding.Default;
二、被采集的网站是UTF-8
WebClient web = new WebClient();
web.Encoding = System.Text.Encoding.UTF8;
猜您喜欢