[R-SIG-Mac] Encoding issue with read.csv
Arcadio Rubio García
arcadiorubiogarcia at gmail.com
Fri Oct 23 21:34:11 CEST 2009
Hi all,
I've been given a CSV file saved on an old Windows 2000 machine. I
think it's coded in Windows-1252 (roughly equivalent to ISO-8859-1 I
think).
When I try to open it with read.csv('foo.csv', encoding =
'iso-8859-1') I get a coding error.
However, if I do:
options(encoding = 'iso-8859-1')
data <- read.csv('foo.csv')
The file is opened smoothly. What am I doing wrong? Shouldn't the
first work if the second does?
Thanks in advance.
Best regards,
A. R.
More information about the R-SIG-Mac
mailing list