作者f7712534 (汉堡包)
看板C_Sharp
标题[问题] c# Httpclient response 乱码
时间Wed Sep 28 09:33:25 2016
练习爬网页;
https://tw.money.yahoo.com/currency-converter
都变乱码!
试过encode utf-8
一样没用,有高手有相关经验吗?
感谢赐教
-----
Sent from JPTT on my iPhone
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 118.161.101.231
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1475026408.A.452.html
1F:推 shuangrain: 刚刚用WebClient+HtmlAgilityPack试了一下发现加上Use 09/28 16:17
对阿,搞不懂!postman真的很强,都没问题
2F:→ shuangrain: r-Agent後有时候正常,有时候会变乱码,不太懂他们用 09/28 16:17
3F:→ shuangrain: 什麽机制来判断编码 09/28 16:17
※ 编辑: f7712534 (36.229.22.32), 09/28/2016 17:09:30