[R-sig-Geo] readOGR and nonASCII character

Roger Bivand Roger.Bivand at nhh.no
Tue Jul 17 18:49:38 CEST 2007


On Wed, 11 Jul 2007, Agustin Lobo wrote:

> Hi list,
>
> Is there any way to get readOGR() to correctly read
> non-ascii character strings from the dbf file? I've
> checked and my dbf file correctly displays
> names with accents, but once read into R
> accents are substituted by wrong symbols.

We are dependent on what GDAL/OGR gives us here. Please try the equivalent 
function in maptools for your shapefile, and see whether the read.dbf() in 
foreign does any better. I'm assuming that you know the locale settings of 
your platform, and of the originating platform from sessionInfo()?

Roger

>
> Agus
>
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the R-sig-Geo mailing list