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

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Wed Aug 15 22:04:06 PDT 2012


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) :

> "select * from municipalities where kunta_ni1='Saarijärvi'"

> (The double-quote at the beginning and trailing of the file are necessary)

Yes, that works. It is a bit tricky but totally usable. I tried to save the whole command into Windows batch file as UTF-8 encoded but that does not work, it must be done exactly as you wrote. Hardest thing will be to learn other people to do it this way.

-Jukka-


More information about the gdal-dev mailing list