2019-01-31
閱讀量:
1044
R爬蟲報錯
問題描述:
read_html(https://list.tmall.com/search_pr ... mp;type=pc#J_Filter)
報如下錯誤:
Error in doc_parse_raw(x, encoding = encoding, base_url = base_url, as_html = as_html,??:
??Input is not proper UTF-8, indicate encoding !
Bytes: 0xEC 0xC3 0xA8 0x74 [9]
解決方法:
這種情況是由于編碼不是UTF-8格式,
使用guess_encoding()用來探測文檔的編碼
https://rdrr.io/cran/rvest/man/encoding.html






評論(0)


暫無數(shù)據(jù)
推薦帖子
0條評論
0條評論
0條評論