Is QGIS opening those files in UTF-8?
I've been experimenting the same issue before, but on the other side. I work on macOS with UTF-8 as default encoding. When I open a file created with a different encoding (primarily windows-xxxx) I lost accents. The solution: just change encoding in layer properties.
No accent:
SettingsUse:
writeOGR(obj=for.ana, dsn=".", layer="for_export",driver="ESRI Shapefile", layer_options = "ENCODING=UTF-8")
Changing settingsInstead of:
writeOGR(obj=for.ana, dsn=".", layer="for_export",driver="ESRI Shapefile", encoding="UTF-8")
With accents:
layer_options
, you add the parameters to ogr2ogr
shell command. Check GDAL documentation for more options.