You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have problems with the encoding of Unicode characters in Windows using the vect() function:
library(sf)
library(terra)
# importing a geojson file as sf object url<-"https://data.montreal.ca/dataset/00bd85eb-23aa-4669-8f1b-ba9a000e3dd8/resource/e9b0f927-8f75-458c-8fda-b5da65cc8b73/download/limadmin.geojson"mtl.sf<- read_sf(url)
# convert sf object to SpatVector object mtl.spv<- vect(mtl.sf)
# while mtl.sf$NOM# displays French letters correctly, mtl.spv$NOM# does not
Is there any parameter for vect() that would avoid this problem?
Thanks,
Tim
The text was updated successfully, but these errors were encountered:
Thanks. That had annoyed me for a while, but I needed your push to fix it. The values were fine at the C++ side, they just needed to be declared as UTF-8 on the R side. I believe this is fixed now, as I get:
Hi,
I have problems with the encoding of Unicode characters in Windows using the
vect()
function:Is there any parameter for
vect()
that would avoid this problem?Thanks,
Tim
The text was updated successfully, but these errors were encountered: