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(shp at data, 2, as.character) # if
> options("stringsAsFactors") is TRUE
> Encoding(df) <- "latin1"
>shp at 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
>>R-sig-Geo at stat.math.ethz.ch>>https://stat.ethz.ch/mailman/listinfo/r-sig-geo>> _______________________________________________
> R-sig-Geo mailing list
>R-sig-Geo at stat.math.ethz.ch>https://stat.ethz.ch/mailman/listinfo/r-sig-geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alobolistas.vcf
Type: text/x-vcard
Size: 251 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20090321/b0076ee4/attachment.vcf>