On Tue, Oct 18, 2011 at 12:45 PM, DGIS Devels <[email protected]> wrote: > Hi, > We have problems with character encoding with Insert WFS-T transactions in > Oracle DB using Geoserver 2.0.2 and Geotools 2.7. Queries > are successful and returns no error but insert '?' instead of > "ISO-8859-1" special characters . > We specify the charset at the time to get the layer datastore: > > Map map = new HashMap (); > map.put (WFSDataStoreFactory.URL.key, "...."); > map.put (WFSDataStoreFactory.ENCODING.key, "ISO-8859-1"); > map.put (WFSDataStoreFactory.ENCODING.CRS, wfsLayerSource.getSrs()); > > WFSDataStoreFactory factory = new WFSDataStoreFactory(); > > WFSDataStore datastore = (WFSDataStore) factory.createDataStore (map); > > and in Geoserver global settings too. > > Must we set the charset somewhere else? May be an error?
So you are using the WFS datastore from Geotools to communicate with GeoServer? The problem could be in various places, it would be good to first find where: - the store is sending the request, maybe the encoding issue happens there. GeoServer has in the web.xml a request logger, you can enable it to have it dump down the requests and check - the request is parsed, it might happen there - the code writes down to Oracle, it might happen there too I never tried to write to Oracle using anything other than english so I honestly don't know, it definitely requires more investigation and eventual bug fixing Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
