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

2012-08-17 Thread Even Rouault
Selon xavier lhomme : > Hi > I tried to add to the function SetAttributeFirlter the following filter : > nam = 'MY#FIRST TEST ON' but it doesn't work. > then I triedHttpUtility.UrlEncode( ) but it doesn't work too. > > If I encode my string like this nam = 'MY%23 FIRST+TEST+ON ' it wor

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

2012-08-17 Thread xavier lhomme
Hi I tried to add to the function SetAttributeFirlter the following filter : nam = 'MY#FIRST TEST ON' but it doesn't work. then I triedHttpUtility.UrlEncode( ) but it doesn't work too. If I encode my string like this nam = 'MY%23 FIRST+TEST+ON ' it works; Could you explain a bit more

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

2012-08-16 Thread Rahkonen Jukka
Even Rouault wrote: > Note: yesterday after your emails, I've revised substantially how escaping > was done in the WFS driver, because there were cases where URL-escaping > would have been needed (for example if you passed '&' or '%'), so now for > 'ä', you should see 25-43-33-25-41-34 (but that

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

2012-08-16 Thread Even Rouault
Selon Jukka Rahkonen : > I think this is my last question about WFS and URL-encoding this time. > > I had a look how the WFS requests look in hexadecimals. > > My TinyOWS and Mapserver WFS both accepts two ways to express letter "ä" > inside > ogc:Filter with http GET. First of those alternatives

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

2012-08-16 Thread Jukka Rahkonen
I think this is my last question about WFS and URL-encoding this time. I had a look how the WFS requests look in hexadecimals. My TinyOWS and Mapserver WFS both accepts two ways to express letter "ä" inside ogc:Filter with http GET. First of those alternatives is an UTF-8 letter "ä" in URL-encode

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

2012-08-15 Thread Rahkonen Jukka
Even Rouault wrote: > Looks a bit complicated. Actually, I'm thinking you could avoid those encoding > problems with using : > ogrinfo "WFS:http://188.64.1.61/cgi-bin/tinyows"; -sql --optfile sql.txt > where sql.txt contains (with a UTF-8 text editor, such as Notepad++ correctly > configured) :

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

2012-08-15 Thread Even Rouault
Le mercredi 15 août 2012 23:14:53, Rahkonen Jukka a écrit : > Even Rouault wrote: > > Le mercredi 15 août 2012 21:28:22, Jukka Rahkonen a écrit : > >> GvSIG is also sending GetFeatures with http GET and filters and it had > >> same kind of problems with special characters. Now the developers say >

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

2012-08-15 Thread Rahkonen Jukka
Even Rouault wrote: Le mercredi 15 août 2012 21:28:22, Jukka Rahkonen a écrit : >> GvSIG is also sending GetFeatures with http GET and filters and it had same >> kind of problems with special characters. Now the developers say that they >> have fixed URL encoding. I hope that the solution is som

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

2012-08-15 Thread Even Rouault
Le mercredi 15 août 2012 21:28:22, Jukka Rahkonen a écrit : > GvSIG is also sending GetFeatures with http GET and filters and it had same > kind of problems with special characters. Now the developers say that they > have fixed URL encoding. I hope that the solution is somehow re-usable I'm not su

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

2012-08-15 Thread Jukka Rahkonen
Jukka Rahkonen mmmtike.fi> writes: > > Hi, > > It looks like it is not possible to use some special characters in filters > with > OGR WFS driver. GvSIG is also sending GetFeatures with http GET and filters and it had same kind of problems with special characters. Now the developers say that

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

2012-08-08 Thread Jukka Rahkonen
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 a