I can't remember if this issue is fixed for 2.3.1. I suspect it may be 2.4. When creating the datastore you are using you have to specify the charset to use for encoding and decoding the shapefile. I think the default is ISO-8859-1. And in (possibly) 2.3 it is hard coded into the shapefile datastore to use it.
Jesse Peter Plumber wrote: > Hi, > > I am using a org.geotools.data.FeatureStore (gt2/2.3.1) to write esri > shape files (using jts com.vividsolutions.jts.geom.*). The data comes > from a DB using UTF-8. In the resulting .shp-files I get the wrong > character encoding. It seems that UTF-8 is interpreted as ISO-8859-1. > Strangely, this error occurs on a server running on debian but not on my > local machine running under windows. I have no idea where the error > occurs, e.g. if it has something to do with a JBoss configuration (which > I do not assume) etc. > > I am not sure at which point I can handle this, specifically, how I > could tell the FeatureStore which character encoding to use. > > Best Regards > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
