[Geoserver-users] Character encoding problem.

Hello. The last few days i've been messing around with geotools, since I have
been assigned a project in my university. My current objective is just to
read a shapefile and get a Collection (FeatureCollection) which will give me
access to the attribute data in the shapefile. I've used an approach which
looks like this : DataStore -> FeatureSource -> FeatureCollection and it
seems to work just fine, except that when i try to retrieve data written in
Greek I get garbage like "???". I asked around at the geotools irc channel
and I was told that geotools doesn't support extended characters, but
geoserver seems to be using some patch that allows for this. So, the
question is exactly this. How did you come around this problem ? Is there a
simple way for me to solve it ? Any help would be appreciated.

Nick Lefkaditis
--
View this message in context: http://www.nabble.com/Character-encoding-problem.-tf3985138.html#a11314898
Sent from the GeoServer - User mailing list archive at Nabble.com.

bluechild ha scritto:

Hello. The last few days i've been messing around with geotools, since I have
been assigned a project in my university. My current objective is just to
read a shapefile and get a Collection (FeatureCollection) which will give me
access to the attribute data in the shapefile. I've used an approach which
looks like this : DataStore -> FeatureSource -> FeatureCollection and it
seems to work just fine, except that when i try to retrieve data written in
Greek I get garbage like "???". I asked around at the geotools irc channel
and I was told that geotools doesn't support extended characters, but
geoserver seems to be using some patch that allows for this. So, the
question is exactly this. How did you come around this problem ? Is there a
simple way for me to solve it ? Any help would be appreciated.

I've patched Geotools yesterday to support extended characters (chinese, in that case). You need to checkout the 2.3.x branch of geotools and
build it yourself, and then specify the proper Charset when building
the shapefile datastore. Unfortunately we don't have a release with
the patch included, and we won't have one for at least 20 more days I guess.

Cheers
Andrea