Hi, Paco<br>
<br>
Can you check if you have set correctly NLS_LANG environment variable for mapserver<br>
for example, if you use mapserver with apache in cgi mode, add to your conf file :<br>
<br>
Set NLS_LANG ...<br>
<br>
Regards, Michael<br><br>
<br><div class="gmail_quote">2009/9/2 Paco <span dir="ltr">&lt;<a href="mailto:fgines@hotmail.com" target="_blank">fgines@hotmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Hello list,<br>
I`ve problemas with OpenLayer/MapServer and the Spanish characters (Ñ).<br>
If I go to Mapserver directly with WMS there is no problem, but if I recuest<br>
the map with Openlayer he don’t show me the correct characters (España – Espa?a)<br>
I’ve tried with OpenLayers.Lang[&quot;es&quot;];  o OpenLayers.Lang.setCode(&#39;es&#39;);<br>
<br>
Any suggestions of how to solve this problem.<br>
Thanks for your ideas?<br>
Paco<br>
<br>
WMS request<br>
<a href="http://hostname/cgi-bin/wms-file?SERVICE=WMS&amp;VERSION=1.1.1&amp;" target="_blank">http://hostname/cgi-bin/wms-file?SERVICE=WMS&amp;VERSION=1.1.1&amp;</a> REQUEST=GetMap&amp;<br>
                layers=toponimia&amp; bbox=368850,4063000,375000,4067300&amp;srs=epsg:23030<br>
                &amp;format=image/png&amp;width=400&amp;height=400&amp;styles=<br>
<br>
the mapfile  layer:<br>
<br>
        LAYER<br>
                NAME &quot;toponimia&quot;<br>
                METADATA<br>
                        &quot;wms_title&quot;     &quot;Toponimia&quot;<br>
                        &quot;wms_srs&quot;       &quot;EPSG:23030&quot;<br>
                END<br>
<br>
                PROJECTION<br>
                        &quot;init=epsg:23030&quot;<br>
                END<br>
<br>
                TYPE annotation<br>
                STATUS on<br>
<br>
                LABELMINSCALEDENOM 1<br>
                LABELMAXSCALEDENOM 5000<br>
<br>
                CONNECTIONTYPE oraclespatial<br>
                CONNECTION &quot;table/pasww@db&quot;<br>
<br>
                DATA &quot;SDOPUNTO FROM (SELECT POSICION, TEXTO, ROTACION, SDOPUNTO<br>
FROM TOTPNMVIAL_T<br>
                        INNER JOIN TPNMVIAL …….<br>
                        WHERE …….) USING NONE&quot;<br>
<br>
                DUMP TRUE<br>
<br>
                CLASS<br>
                NAME &quot;Textos cc&quot;<br>
                        TEXT ([TEXTO])<br>
                        LABEL<br>
                                TYPE truetype<br>
                                FONT arial<br>
                                SIZE 8<br>
                                POSITION cc<br>
                                ANGLE [ROTACION]<br>
                                COLOR 25 25 112<br>
                        END<br>
                END<br>
END<br>
<br>
<br>
The Script:<br>
layer = new OpenLayers.Layer.WMS( &quot;Cartografia&quot;, url,<br>
    {layers: &quot;toponimia&quot;}, {singleTile: true, ratio: 2.0 });<br>
<br>
var options = { maxExtent: maxBounds,<br>
scales: [50000,25000,10000,5000,2000,1000],<br>
projection: &quot;EPSG:23030&quot;,  units: &quot;m&quot;,<br>
controls: [     new OpenLayers.Control.Navigation(),<br>
                new OpenLayers.Control.PanZoomBar(),<br>
                new OpenLayers.Control.ScaleLine(),<br>
new OpenLayers.Control.LayerSwitcher(),<br>
                new OpenLayers.Control.KeyboardDefaults()<br>
        ], numZoomLevels: 6};<br>
<br>
map = new OpenLayers.Map( &#39;map&#39;, options);<br>
map.addLayers([layer]);<br>
var lonLat = new OpenLayers.LonLat( &quot;${X}&quot;, &quot;${Y}&quot;);<br>
map.setCenter(lonLat,4);<br>
<br>
and in the header:<br>
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot;&gt;<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</blockquote></div><br>