[R] reading files (readOGR) and non-ascii characters

Agustin Lobo aloboaleu at gmail.com
Thu Dec 4 13:30:16 CET 2008

I'm forwarding to this list as I've got no
answer in [R-sig-Geo] and perhaps this
issue is not exclusive of readOGR()

I'm using ubuntu 8.04 andR version 2.8.0 (2008-10-20)

-------- Original Message --------
Subject: readOGR and non-ascii characters
Date: Wed, 03 Dec 2008 14:22:34 +0100
From: Agustin Lobo <aloboaleu at gmail.com>
Reply-To: Agustin.Lobo at ija.csic.es
To: sig-geo <r-sig-geo at stat.math.ethz.ch>


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()?



Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Tel. 34 934095410
Fax. 34 934110012
email: Agustin.Lobo at ija.csic.es

More information about the R-help mailing list