[gdal-dev] WFS driver does not do URL-encoding right

Jukka Rahkonen jukka.rahkonen at mmmtike.fi
Wed Aug 8 01:14:43 PDT 2012


Hi,

It looks like it is not possible to use some special characters in filters with
OGR WFS driver.

This command works fine:
http://188.64.1.61/cgi-bin/tinyows -sql "select * from municipalities where
kunta_ni1='Helsinki'"

However, the WFS request fails if I use fore example 'Saarijärvi' as an
attribute value. The reason is that character 'ä' does not get URL-encoded into
%C3%A4 as it should in the GetFeature request. This is the request that is sent
to WFS server. 

http://188.64.1.61/cgi-bin/tinyows?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=lv:municipalities&FILTER=%3CFilter%20xmlns=%22http://www.opengis.net/ogc%22%20xmlns:lv=%22http://latuviitta.fi/%22%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Ekunta_ni1%3C/PropertyName%3E%3CLiteral%3ESaarij�rvi%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E

Placing %C3%A4 into where it belongs makes the request to work.
I am on Windows XP with Finnish default settings.

Is this something worth filing a ticket or what?

-Jukka Rahkonen-



More information about the gdal-dev mailing list