Is there a way to encode shapefiles from LATIN1 to UTF-8?
export SHAPE_ENCODING="ISO-8859-1" ogr2ogr output.shp input -lco ENCODING=UTF-8
Note: LATIN1 should work too instead of ISO-8859-1.
In Windows, do NOT set the
ogr2ogr does not recognize
If my understanding of Shapefiles is correct, the part that is encoding-sensitive is the attribute database contained in the DBF file.
Here is an answer that helped me solve this issue using LibreOffice Calc/Base:
It has the additional benefit that you can open the DBF file using a distinct character set and thus find out what the current encoding actually is.