[問題] parsing的中文顯示
現在想要抓全家的網頁當作練習
用這個網站來做練習
http://www.i-write.idv.tw/life/info/familymart/familymart1.html
下面是我的程式碼
library(Rcurl)
library(XML)
library(httr)
klist<-paste0("http://www.i-write.idv.tw/life/info/familymart/
familymart1-",1:7,".html")
getURL(klist,encoding="UTF-8")->k
htmlParse(k,encoding="UTF-8")->k
readHTMLTable(k)->k1
k1[seq(3,length(k1),by=3)]->k2
這樣會得到一個完整的table沒錯,可是除了數字之外其他的都是詭異的亂碼
請問我在parsing的哪個過程需要做修正呢
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.175.238.8
※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1466056948.A.67C.html
→
06/16 14:41, , 1F
06/16 14:41, 1F
※ 編輯: clansoda (1.175.238.8), 06/16/2016 15:02:07
→
06/16 15:02, , 2F
06/16 15:02, 2F
→
06/16 15:26, , 3F
06/16 15:26, 3F
→
06/16 15:29, , 4F
06/16 15:29, 4F
→
06/16 15:34, , 5F
06/16 15:34, 5F
→
06/16 15:34, , 6F
06/16 15:34, 6F
→
06/16 15:34, , 7F
06/16 15:34, 7F
→
06/16 15:36, , 8F
06/16 15:36, 8F
→
06/16 16:17, , 9F
06/16 16:17, 9F
→
06/16 16:28, , 10F
06/16 16:28, 10F
→
06/16 16:29, , 11F
06/16 16:29, 11F
→
06/16 16:32, , 12F
06/16 16:32, 12F
→
06/16 16:32, , 13F
06/16 16:32, 13F
→
06/16 16:33, , 14F
06/16 16:33, 14F
→
06/16 16:34, , 15F
06/16 16:34, 15F
→
06/16 16:34, , 16F
06/16 16:34, 16F
→
06/16 16:35, , 17F
06/16 16:35, 17F
→
06/16 16:35, , 18F
06/16 16:35, 18F
→
06/16 16:35, , 19F
06/16 16:35, 19F
→
06/16 16:35, , 20F
06/16 16:35, 20F
→
06/16 16:36, , 21F
06/16 16:36, 21F
→
06/16 16:36, , 22F
06/16 16:36, 22F
→
06/16 16:36, , 23F
06/16 16:36, 23F
推
06/16 16:36, , 24F
06/16 16:36, 24F
→
06/16 16:37, , 25F
06/16 16:37, 25F
→
06/16 16:38, , 26F
06/16 16:38, 26F
→
06/16 16:39, , 27F
06/16 16:39, 27F
→
06/16 16:39, , 28F
06/16 16:39, 28F
→
06/16 16:39, , 29F
06/16 16:39, 29F
→
06/16 16:40, , 30F
06/16 16:40, 30F
→
06/16 16:41, , 31F
06/16 16:41, 31F
→
06/16 16:41, , 32F
06/16 16:41, 32F
→
06/16 16:41, , 33F
06/16 16:41, 33F
→
06/16 16:42, , 34F
06/16 16:42, 34F
→
06/16 16:42, , 35F
06/16 16:42, 35F
→
06/16 16:42, , 36F
06/16 16:42, 36F
→
06/16 16:48, , 37F
06/16 16:48, 37F
→
06/16 16:48, , 38F
06/16 16:48, 38F
還有 31 則推文
→
06/16 20:10, , 70F
06/16 20:10, 70F
推
06/16 20:10, , 71F
06/16 20:10, 71F
→
06/17 08:55, , 72F
06/17 08:55, 72F
→
06/17 10:23, , 73F
06/17 10:23, 73F
→
06/17 10:23, , 74F
06/17 10:23, 74F
→
06/17 10:25, , 75F
06/17 10:25, 75F
→
06/17 11:24, , 76F
06/17 11:24, 76F
→
06/17 11:24, , 77F
06/17 11:24, 77F
→
06/17 11:25, , 78F
06/17 11:25, 78F
→
06/17 11:25, , 79F
06/17 11:25, 79F
→
06/17 11:29, , 80F
06/17 11:29, 80F
→
06/17 11:30, , 81F
06/17 11:30, 81F
→
06/17 11:30, , 82F
06/17 11:30, 82F
→
06/17 11:40, , 83F
06/17 11:40, 83F
→
06/17 11:40, , 84F
06/17 11:40, 84F
→
06/17 11:40, , 85F
06/17 11:40, 85F
→
06/17 12:03, , 86F
06/17 12:03, 86F
→
06/17 12:05, , 87F
06/17 12:05, 87F
→
06/17 12:06, , 88F
06/17 12:06, 88F
→
06/17 12:17, , 89F
06/17 12:17, 89F
→
06/17 12:17, , 90F
06/17 12:17, 90F
→
06/17 12:21, , 91F
06/17 12:21, 91F
→
06/17 12:22, , 92F
06/17 12:22, 92F
→
06/17 12:22, , 93F
06/17 12:22, 93F
→
06/17 12:23, , 94F
06/17 12:23, 94F
→
06/17 12:29, , 95F
06/17 12:29, 95F
→
06/17 12:29, , 96F
06/17 12:29, 96F
→
06/17 12:30, , 97F
06/17 12:30, 97F
→
06/17 15:41, , 98F
06/17 15:41, 98F
→
06/17 15:42, , 99F
06/17 15:42, 99F
→
06/17 15:42, , 100F
06/17 15:42, 100F
→
06/17 15:55, , 101F
06/17 15:55, 101F
→
06/21 16:20, , 102F
06/21 16:20, 102F
→
06/21 16:20, , 103F
06/21 16:20, 103F
→
06/21 16:21, , 104F
06/21 16:21, 104F
→
06/21 16:21, , 105F
06/21 16:21, 105F
→
06/21 16:21, , 106F
06/21 16:21, 106F
→
06/21 16:37, , 107F
06/21 16:37, 107F
→
06/21 16:39, , 108F
06/21 16:39, 108F
→
06/21 16:39, , 109F
06/21 16:39, 109F
討論串 (同標題文章)
R_Language 近期熱門文章
PTT數位生活區 即時熱門文章