From 8e4decdf3bbfc7a7d7f0cc954d567abc12381668 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Wed, 27 Dec 2023 12:45:39 +0545 Subject: [PATCH] Encode attributes in shapefile exports hdx --- src/validation/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation/models.py b/src/validation/models.py index f103e853..8d249adf 100644 --- a/src/validation/models.py +++ b/src/validation/models.py @@ -465,7 +465,7 @@ def __init__(self, suffix, driver_name, layer_creation_options, format_option): EXPORT_TYPE_MAPPING = { "geojson": ExportTypeInfo("geojson", "GeoJSON", [], "GDAL"), - "shp": ExportTypeInfo("shp", "ESRI Shapefile", [], "GDAL"), + "shp": ExportTypeInfo("shp", "ESRI Shapefile", ["ENCODING=UTF-8"], "GDAL"), "gpkg": ExportTypeInfo("gpkg", "GPKG", [], "GDAL"), "sqlite": ExportTypeInfo("sqlite", "SQLite", [], "GDAL"), "fgb": ExportTypeInfo("fgb", "FlatGeobuf", ["VERIFY_BUFFERS=NO"], "GDAL"),