You can try something like this

shp <- readOGR()
df <- apply(s...@data, 2, as.character) # if options ("stringsAsFactors") is TRUE
Encoding(df) <- "latin1"
s...@data <- as.data.frame(df)

Roland

Hi!

Is there any way to read the dbf of shp files that contain
non-ascii characters? I've tried with encoding="UTF-8"
or latin3 as for scan, but this argument does not exist for
readOGR (or writeOGR)

Agus

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to