各位,我在用RCurl获取新浪股票信息的时候出现乱码,
url<-"http://vip.stock.finance.sina.com.cn/corp/go.php/vCI_StockStructure/stockid/000786.phtml"
temp<-getURL(url=url,httpheader=myheader,.encoding="gb2312")
#该页面是<meta http-equiv="该页面是<meta http-equiv="[url=]Content-Type" content="[url=]text/html; charset=[/url][url=]utf-8[/url]" />的,
temp<-getURL(url=url,httpheader=myheader,.encoding="utf-8")
我现在想要获取url<-"http://vip.stock.finance.sina.com.cn/corp/go.php/vCI_StockStructure/stockid/000786.phtml",怎么解决乱码的问题啊?请各位帮帮忙!


雷达卡






搞定了,和这个网页的页面设计有关,我去,受不了了
京公网安备 11010802022788号







