<div dir="ltr"><div><div>Hi,<br><br></div><div>Sorry, I mixed a little bit both things in the same phrase. I can see correctly stored data in postgis (it has UTF8 encoding in the database) with PGAdmin. I can see also correctly in firebug the WFS communication.<br><br></div><div>The WFS server is version 1.1.0 based on Mapserver 6.4.<br></div><div><br></div>Finally I got the string correctly shown from OL feature by decoding it from UTF8. I needed to include a js library with the functionallity to decode/encode UTF8. It seems firebug show OL vars without applying any decoding but OL stored them correctly.<br><br></div><div>This makes me thinking of how OL stored strings. I assume it stores whatever it receives and is the aplication using it in charge of encoding/decoding, isn't it? Or maybe it has a encoding parameter or functions to be used when retrieving strings from OL objects?<br></div><div><br></div><div>Thank you for being patient with my previous badly writen email. After rereading it I realized it was not clear enought.<br></div><div><br></div>Regards,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Juan Manuel Moreno Rivera.


<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Sección de Teledetección y SIG / Remote Sensing & GIS
group</span></font></p>

<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Instituto de Desarrollo Regional / Institute for Regional
Development</span></font></p>

<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Universidad de Castilla-La Mancha / University of
Castilla-La Mancha</span></font></p><p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Tlf: +34 967599200 (Ext: 2627)<br></span></font></p>

<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><a href="http://www.teledeteccionysig.es/" target="_blank">http://www.teledeteccionysig.es/</a></span></font></div></div></div></div></div>
<br><div class="gmail_quote">2015-10-09 16:21 GMT+02:00  <span dir="ltr"><<a href="mailto:Steve.Toutant@inspq.qc.ca" target="_blank">Steve.Toutant@inspq.qc.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="sans-serif" size="2">What do you mean by </font><font size="3">"WFS
response are correctly shown in pgadmin</font><font face="sans-serif" size="2">"</font>
<br>
<p><font size="3">Is your postgis database use encoding utf-8?</font>
</p><p><font size="3">What is your wfs server and version?</font>
<br>
<br>
<br>
</p><p></p><table style="border-collapse:collapse" width="100%">
<tbody><tr height="8" valign="top">
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px" width="40%"><font face="sans-serif" size="1"><b>"Juanma
M. R." <<a href="mailto:juanma.mr@gmail.com" target="_blank">juanma.mr@gmail.com</a>>@<a href="http://lists.osgeo.org" target="_blank">lists.osgeo.org</a></b> </font>
<br><font face="sans-serif" size="1">Envoyé par : "Users" <<a href="mailto:openlayers-users-bounces@lists.osgeo.org" target="_blank">openlayers-users-bounces@lists.osgeo.org</a>></font>
<p><font face="sans-serif" size="1">2015-10-09 05:57</font>
</p></td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px" width="59%">
<table style="border-collapse:collapse" width="100%">
<tbody><tr height="21" valign="top">
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px" width="57">
<div align="right"><font face="sans-serif" size="1">A</font></div>
</td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font face="sans-serif" size="1"><a href="mailto:openlayers-users@lists.osgeo.org" target="_blank">openlayers-users@lists.osgeo.org</a></font>
</td></tr><tr height="21" valign="top">
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px" width="57">
<div align="right"><font face="sans-serif" size="1">cc</font></div>
</td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px">
</td></tr><tr height="21" valign="top">
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px" width="57">
<div align="right"><font face="sans-serif" size="1">Objet</font></div>
</td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font face="sans-serif" size="1">[OpenLayers-Users]
Encoding in features attributes</font></td></tr></tbody></table>
<br>
<table style="border-collapse:collapse" width="393">
<tbody><tr height="8" valign="top">
<td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px" width="57">
</td><td style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px" width="336"></td></tr></tbody></table>
<br></td></tr></tbody></table>
<br>
<br>
<br>
<br>
<br><font size="3">Dear list,<br>
</font>
<br><font size="3">I have a WFS layer already loaded in Openlayers 2.13 version.
The problem is that some attributes are spanish characters and are not
shown correctly.<br>
</font>
<br><font size="3">I have checked and in database and WFS response are correctly
shown in pgadmin and firebug. When checking feature attributes already
loaded in OpenLayers with firebug it shows them with strange characters.
The webpage OL is loaded is in UTF8 encoding. <br>
</font>
<br><font size="3">I have looked in OL documentation for some kind of encoding
parameter for WFS layer / protocol. Is OL using any internal encoding or
maybe firebug assumes something in WFS communication that OL do not?</font>
<br>
<br><font size="3">Regards,</font>
<br><font size="3">Juan Manuel Moreno Rivera. </font>
<p><font face="Arial" size="2">Sección de Teledetección y SIG / Remote Sensing
& GIS group</font>
</p><p><font face="Arial" size="2">Instituto de Desarrollo Regional / Institute
for Regional Development</font>
</p><p><font face="Arial" size="2">Universidad de Castilla-La Mancha / University
of Castilla-La Mancha</font>
</p><p><font face="Arial" size="2">Tlf: <a href="tel:%2B34%20967599200" value="+34967599200" target="_blank">+34 967599200</a> (Ext: 2627)</font>
</p><p><a href="http://www.teledeteccionysig.es/" target="_blank"><font color="blue" face="Arial" size="2"><u>http://www.teledeteccionysig.es/</u></font></a><tt><font size="2">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
</font></tt><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank"><tt><font size="2">http://lists.osgeo.org/mailman/listinfo/openlayers-users</font></tt></a>
<br>
<br>
<br></p><p></p><p></p><p></p><p></p><p></p><p></p></blockquote></div><br></div>