datasci-info / AG101

0 stars 0 forks source link

encoding:'ISO-8859-1' #18

Closed anniehuang921 closed 9 years ago

anniehuang921 commented 9 years ago

試這個: http://haruhii.pixnet.net/blog/post/41591272-%E5%8F%B0%E5%8C%97%E5%92%96%E5%95%A1%E7%94%9C%E9%BB%9E%E4%B8%8B%E5%8D%88%E8%8C%B6%E6%8E%A8%E8%96%A6wifi%E6%8F%92%E5%BA%A7%E5%B0%8F%E6%95%B4%E7%90%86

嘗試

test=res.text.encode('ISO-8859-1')

直接priint,可以出現正常文字,但交給pandas之後,雖然顯示的表格數有九個,但是內文讀不出來

c3h3 commented 9 years ago
    res.encoding = "utf8"
anniehuang921 commented 9 years ago
res.encoding = "utf8"

再繼續下去~Y(^_^)Y