<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">I have a layer which connect to my postgis
DB with client encoding win1252. </font>
<br><font size=2 face="sans-serif">CONNECTIONTYPE postgis</font>
<br><font size=2 face="sans-serif">CONNECTION "host=serveurpg dbname=geo
user=xxxpassword=xxx port=5432 options='-c client_encoding=WIN1252'"</font>
<br>
<br><font size=2 face="sans-serif">That use to work for years, just before
I start using variable substitution.</font>
<br>
<br><font size=2 face="sans-serif">My problem is when using runtime substitution
in a FILTER</font>
<br><font size=2 face="sans-serif">ex.: FILTER (periode = '%periode%' )<br>
</font>
<br><font size=2 face="sans-serif">If I send a wms getmap request with
the wms parameter periode = '2001 à 2003'</font>
<br>
<br><font size=2 face="sans-serif">It seems that mapserver receive '2001
à 2003' encoded in utf-8, and tells postgis that it is in win1252, so nothing
is returned.</font>
<br>
<br><font size=2 face="sans-serif">If I use CONNECTION "host=serveurpg
dbname=geo user=xxxpassword=xxx port=5432 options='-c client_encoding=utf-8'"</font>
<br><font size=2 face="sans-serif">it works, but I don't want to do that
because I'll have a lot of code and mapfiles to change.</font>
<br>
<br><font size=2 face="sans-serif">Is there a reason why mapserver would
think a string is encoded in utf-8?</font>
<br><font size=2 face="sans-serif">Maybe I'm totally on a wrong track,
if so any idea where could be the problem?</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br><font size=2 face="sans-serif">steve</font>