orbisgis / h2gis

A spatial extension of the H2 database.
http://www.h2gis.org
GNU Lesser General Public License v3.0
207 stars 63 forks source link

Trouble reading SHP file #1379

Closed j3r3m1 closed 4 months ago

j3r3m1 commented 5 months ago

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 ?

nicolas-f commented 5 months ago

Hi,

There is no issues with version 2.2.1 with this command:

CALL SHPREAD('urock_buildings.shp', 'UROCK_BUILDINGS', 'windows-1252')
j3r3m1 commented 4 months ago

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 ?

nicolas-f commented 4 months ago

Hi,

no the current version of h2gis assume that the dbf file is in utf8 encoding.

ebocher commented 4 months ago

See #1381

ebocher commented 4 months ago

Fixed