[R] encoding accentsand tildes in R Macosx

Kenneth Roy Cabrera Torres krcabrer at une.net.co
Mon Aug 11 07:47:03 CEST 2008

Hi Carlos:

I think you got a encoding problem.
Maybe is esier to convert it.

I don't know how to convert in Mac OS, but
in linux you can use "iconv" that converts many codes
to other.

Is the original file form a windos$ OS system?
Maybe the encoding is in windows-1256 and you need
to convert to a compatible MAC enconding.

Hope this helps.

El dom, 10-08-2008 a las 22:14 -0700, Carlos Cuartas escribió:
> Hello,
> In R under  Mac OS X 10.5.4 I've had problems when I've tried to read a data.frame with characters including tildes and accents.
> For instance Florea is changed to Flore\x96a and Ranchera is changed to Rancher\x92a 
> In the code:  section<-read.table('Sectiondic.txt',sep='\t',header=T,stringsAsFactors=F,encoding=" ")
> I've changed the  "encoding" argument but I have not could find the solution.
> Any suggestion?
> Thanks a lot
> Carlos Cuartas
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list