[R-SIG-Mac] [R] data frames with å, ä, and ö (=non-ASCII-characters) from windows to mac os x
dwinsemius at comcast.net
Fri Jan 16 15:13:27 CET 2009
On Jan 16, 2009, at 8:48 AM, Prof Brian Ripley wrote:
> You need to use CP1252 not UTF-8 to read the data. It tells you how
> to do so on the help page ... under 'encoding'. So something like
> A <- read.table(con <- file("myfile", encoding="CP1252"));close(con)
> Please don't cross-post ... I am being brief because you did.
Realizing that it might not work in all situations, would it give
(possibly) useful results to assign the incorrect encoding found in
Gustaf's email, which nonetheless was interpreted sensibly,
"iso-8859-1", to the encoding string?
More information about the R-SIG-Mac