[gdal-dev] Re: WFS and -where with non-ASCII characters
mateusz at loskot.net
Tue Jan 3 09:56:14 EST 2012
On 3 January 2012 14:43, Even Rouault <even.rouault at mines-paris.org> wrote:
> Selon Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi>:
>> Mapserver behaves also as it did before. My codepage is now 65001 and
>> -where "name=\"Hämeenkylä\"" gives http 500 error while
>> -where name='HÃ¤meenkylÃ¤' gives correct result.
> Yes, your observation confirms my little testing. Mateusz' trick with chcp
> indeed fixes the display of UTF-8 characters in the console, but when I enter an
> accentuated character, the command line utilities consume it as Latin1.
> Note: I'm on Windows xp.
> I've verified it with a trivial code compiled with MSVC :
> int main(int argc, char* argv)
> printf("%d\n", strlen(argv));
> return 0;
> If I try "test éven", it prints 4, whereas it should print 5 if it was really
Your test program works for me as expected for text with
all Polish diacritics included
Mateusz Loskot, http://mateusz.loskot.net
More information about the gdal-dev