From: Alexander B. <ale...@gm...> - 2016-05-18 17:54:15
|
Hi all, I have shapefiles with different attribute encodings: UTF-8, WIN-1251 etc, and want to process them with GeoTools. Does GeoTools support .cpg files which specify ecoding of the shapefile attributes, like OGR does? Or the only way to read data correctly is to specify encoding manually using methods like [0, 1]? Thanks [0] http://docs.geotools.org/stable/javadocs/org/geotools/data/shapefile/ShapefileDataStoreFactory.html#DBFCHARSET [1] http://docs.geotools.org/stable/javadocs/org/geotools/data/shapefile/ShapefileDataStore.html#setCharset%28java.nio.charset.Charset%29 -- Alexander Bruy |