h2gis
h2gis copied to clipboard
Trouble reading SHP file
Hi, When I try to read some shapefile, the same error message as in this issue (#1374) is displayed.
The data : data_test.zip
Any idea if this can come from the same problem as in the other issue ?
Hi,
There is no issues with version 2.2.1 with this command:
CALL SHPREAD('urock_buildings.shp', 'UROCK_BUILDINGS', 'windows-1252')
OK I did not know about the .cpg file containing the information about encoding. Is there a way to automatically read the file with the right encoding using the SHPREAD function ?
Hi,
no the current version of h2gis assume that the dbf file is in utf8 encoding.
See #1381
Fixed