readOGR and non-ascii characters
Hi! The following works well for German umlaut. Encoding(obj$COLUMN) <- "latin1" Possibly you need to convert to mode character first. obj$COLUMN <- as.character(obj$COLUMN) Cheers, Roland Am 03.12.2008 um 14:22 schrieb Agustin Lobo:
Hi! I have problems at reading a shp file with readOGR(), names with non-ascii characters (accents ',`) in the dbf table are imported as i.e. Barber\x85 del Vall\x8as while I can read them fine with OpenOffice Calc Is there any way I can state the character set of the dbf file in readOGR()?
I did not find a way of doing so?
Thanks Agus -- Dr. Agustin Lobo Institut de Ciencies de la Terra "Jaume Almera" (CSIC) LLuis Sole Sabaris s/n 08028 Barcelona Spain Tel. 34 934095410 Fax. 34 934110012 email: Agustin.Lobo at ija.csic.es http://www.ija.csic.es/gt/obster
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo