[R-SIG-Mac] Encoding issue with read.csv
Arcadio Rubio García
arcadiorubiogarcia at gmail.com
Mon Oct 26 10:52:47 CET 2009
> Perhaps you meant to use fileEncoding="iso-8859-1" instead of
> encoding="iso-8859-1"? Because that does the same as setting
> options(encoding="iso-8859-1") -- see ?read.table for details.
Thanks a lot. That was the mistake I was making. I was using the
encoding parameter instead of the fileEncoding one, so I was setting
the encoding for the output not for the input. Now it works fine both
with and only with iso-8859-1 or cp1252. That's quite understandable
since cp1252 is a (non-strict) superset of iso-8859-1.
More information about the R-SIG-Mac