kishiyamat / ntu-ut-ling-vwp

MIT License
0 stars 0 forks source link

windows の場合は "X.U.FEFF." がついてしまう。 #20

Open kishiyamat opened 6 years ago

kishiyamat commented 6 years ago

なんでや...

kishiyamat commented 6 years ago

いわゆるBOMかも? Read a UTF-8 text file with BOM

kishiyamat commented 6 years ago

やっぱりそうみたい。 Why does R read the UTF-8 header as text?

kishiyamat commented 6 years ago
read.csv("my_file.txt", fileEncoding="UTF-8-BOM", ...other args...)

で解決しそうです。