Are the non-english fields encoded as you expect in a plain WFS response without a filter? For example: http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typenames=ws:layer1&count=10
This will help us diagnose whether the filter is the problem. Kind regards, Ben/ On 06/08/16 08:59, Ben Caradoc-Davies wrote: > Yes, non-ASCII characters are supported in CQL and XML filters. > Successful filtering also requires correct configuration of your data > source. > > What charset is declared in your GeoServer shapefile data store > configuration? Is it UTF-8? > http://docs.geoserver.org/latest/en/user/data/vector/shapefile.html > > What is your platform encoding (the charset of your operating system)? > Log files are written in the encoding of your platform, so if your > platform cannot encode these characters, placeholders characters will be > written, even when filtering is working correctly. > > Kind regards, > Ben. > > On 06/08/16 05:09, Saka Royban wrote: >> Hi all have a shapefile loaded in GeoServer 2.8 and accessed by OpenLayers >> 2.13. This layer is in UTF-8 encoding and has some english and non-english >> records. >> When i use english fields in cql-filter - as follows, but no differnce >> between WMS and WFS request- GeoServer filters data very well and returns >> the result. layer1 = new ol.layer.Image({ >> title: 'Ostan', >> source: new ol.source.ImageWMS({ >> url: 'http://localhost:8080/geoserver/wms', >> params: { >> LAYERS: 'ws:layer1', >> VERSION: '1.1.1', >> CQL_FILTER: "NAME_ENG = 'sommy'" >> } >> }) >> });But if i try to use a field which contains non-english data in >> cql-filter, GeoServer returns no data. My webpage has following meta, as >> well: <meta content="text/html; charset=utf-8" http-equiv="content-type" >> />When i check geoserver log, i see some messy characters instead of my >> non-english string in cql-filter. >> | >> | | >> >> | Using Firebug, in Parameteres section, everything is correct. I see >> "CQL-Filter: Name = 'سامی' " which is right for my language. But in >> Geoserver log, i see some dummy characters instead of abovementioned >> characters >> Can anyone confirm that using characters other than ASCII is possible in >> CQL-Filter? >> >> Regards | >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> >> _______________________________________________ >> Geoserver-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/geoserver-users >> > -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
