<div dir="ltr">I´ve solved the problem; I post de solution for future searchings:<br>1. I keep de Postgis Database encoding to UTF-8<br>2. I changed the client_encoding in the postgresql.conf to client encoding = iso-8859-1<br>
3. Then I changed the Layer Metadata in the mapfile to &#39;Layer_Encoding&#39; &#39;Latin1&#39;.<br><br>Now the special characters &#39;ñ&#39;, &#39;á&#39;, etc are shown properly.<br><br><div class="gmail_quote">2008/7/9 Guillaume Sueur &lt;<a href="mailto:guillaume.sueur@neogeo-online.net">guillaume.sueur@neogeo-online.net</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">it&#39;s not.<br>
default client_encoding is ASCII<br>
<br>
<br>
Gabriel Messner a écrit :<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Thanks, but default client_encoding in PostgreSQL is the database encoding (here, UTF-8)<br>
<br></div>
2008/7/9 Guillaume Sueur &lt;<a href="mailto:guillaume.sueur@neogeo-online.net" target="_blank">guillaume.sueur@neogeo-online.net</a> &lt;mailto:<a href="mailto:guillaume.sueur@neogeo-online.net" target="_blank">guillaume.sueur@neogeo-online.net</a>&gt;&gt;:<div>
<div></div><div class="Wj3C7c"><br>
<br>
 &nbsp; &nbsp;just an idea, but maybe check your client_encoding parameter in<br>
 &nbsp; &nbsp;postgresql.conf<br>
 &nbsp; &nbsp;I may be wrong, but I think that mapserver id acting as a client for<br>
 &nbsp; &nbsp;the db, and may have the results returned into the client_encoding<br>
 &nbsp; &nbsp;character set.<br>
<br>
 &nbsp; &nbsp;Guillaume<br>
<br>
 &nbsp; &nbsp;Gabriel Messner a écrit :<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Hi all,<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;I´ve set up a WFS server with mapserver. Data is stored in<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Postgis database. Encoding settings are the followings:<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;-Spatial Data Base encoding is UTF-8<br>
 &nbsp; &nbsp; &nbsp; &nbsp;-For each layer in the mapfile encofing is also UTF-8 indicated<br>
 &nbsp; &nbsp; &nbsp; &nbsp;with &#39;layer_encoding&#39; &#39;UTF-8&#39;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;The server retuns successfully geometries and attributes but the<br>
 &nbsp; &nbsp; &nbsp; &nbsp;the characters &#39;ñ&#39;,á,é,í,ó,ú are missing (spanish).<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;I´ve tried to solve this problem using &#39;wfs_encofing&#39; &#39;UTF-8&#39;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;into the Web object Metadata but when doing so and trying to add<br>
 &nbsp; &nbsp; &nbsp; &nbsp;a wfs layer with UDig, an alert is displayed saying &#39;wrong<br>
 &nbsp; &nbsp; &nbsp; &nbsp;connection parameters&#39;. I´ve also tried with &#39;ows_endoding&#39; and<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&#39;gml_encoding&#39; &nbsp;at Web object Metadata but I fail as well.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;I´d hughly appreciated if anyone can help me.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Thanks in advance.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Gabriel Messner<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;------------------------------------------------------------------------<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;_______________________________________________<br>
 &nbsp; &nbsp; &nbsp; &nbsp;mapserver-users mailing list<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br></div></div>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>&gt;<div class="Ih2E3d"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div>