更新时间:2023-11-27 12:31:46
您是否尝试过 read.csv(...,fileEncoding =UTF-8-BOM)
? ?file
说:
从R 3.0.0开始编码' -8-BOM',并删除
a字节顺序标记(如果存在的话,它通常是由Microsoft应用程序生成的文件和网页
)。
As from R 3.0.0 the encoding ‘"UTF-8-BOM"’ is accepted and will remove a Byte Order Mark if present (which it often is for files and webpages generated by Microsoft applications).