[OpenLayers-Users] WFS filter, encoding problem
Steve.Toutant at inspq.qc.ca
Steve.Toutant at inspq.qc.ca
Tue Jan 6 12:39:56 PST 2015
Hi,
I modified this example
http://dev.openlayers.org/examples/wfs-filter.html
to test a getfeature request with a non spatial filter. My problem is when
I have a french character (é,è,ç, ...) for value, example
new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.EQUAL_TO,
property: "nom_service_incendie",
value: "Régie incendie Lac Saint-Pierre"
This layer is a mapserver WFS and the data are in postgis table. The where
clause in postgis becomes
"nom_service_incendie"= 'Régie incendie Lac Saint-Pierre'
This returns obviously nothing.
Why is this happening and how should I manage that?
Thanks for your help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20150106/25b30829/attachment.html>
More information about the Users
mailing list