I 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.