Thanks!
The problem is that only UTF-8 and latin1 area available , but for cases in
which encoding of the dbf is different (i.e. IBM850 or Western Europe
(DOS/OS2-850/International
as recognized by OpenOffice in the case I'm dealing with now) I can read
in QGIS and write with QGIS
as UTF8 or latin1.
Agus
Roland Kaiser wrote:
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
begin:vcard
fn:Agustin Lobo
n:Lobo;Agustin
org:Institut de Ciencies de la Terra "Jaume Almera" CSIC
adr:;;Lluis Sole Sabris s/n;Barcelona;;08028;Spain
email;internet:[email protected]
url:http://www.ija.csic.es/gt/obster
version:2.1
end:vcard
_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo