[OpenLayers-Users] OpenLayers.Filter encoding problem
Steve.Toutant at inspq.qc.ca
Steve.Toutant at inspq.qc.ca
Thu Jul 24 12:31:26 PDT 2014
Hello
I have defined a filter like this
new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.EQUAL_TO,
property: "Région_administrative",
value: "Centre-du-Québec"
})
The query sent is not well encoded (see below and image attached)
..<ogc:PropertyName>R?gion_administrative</ogc:PropertyName><ogc:Literal>Centre-du-Qu?bec
So I get this error
<ServiceException code="NoApplicableCode" locator="mapserv">
msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed
msPostGISLayerWhichShapes(): Query error. Error executing query: ERROR:
column "Région_administrative" does not exist
LINE 1: ...cc_v_site_patrimonial_cite_p','geom_p')) and ( (
("Région_a...
</ServiceException>
Any idea on How can I send a well encoded request?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140724/cb4f490f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filter_encoding_problem.png
Type: application/octet-stream
Size: 10495 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20140724/cb4f490f/attachment.obj>
More information about the Users
mailing list